Support » Plugin: WP-Members: Membership Framework » Redirect to a URL if page is blocked

  • Resolved drummerboy

    (@drummerboy)


    Hi there Chad,

    Its a fantastic plugin, really doing the job so I firstly say a big THANKS!

    I only have one issue. I’d like the user to be re-directed to a specific page URL if they try and view a blocked page and not show the login/reg form as it does currently. How can I do this?

    Any info MUCH appreciated 🙂

    http://wordpress.org/plugins/wp-members/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    That wouldn’t work. Redirection must happen before headers are sent to the browser and content blocking does not occur until the WP Loop, at which point headers have already started.

    Ahh I see. Thanks, in that case how do I alter what html is displayed when a page is blocked?

    Plugin Author Chad Butler

    (@cbutlerjr)

    There is an easy to edit dialog that displays above the login form area. That can be edited in the plugin’s options.

    There are also quite a few filter hooks that come into play there. I would think wpmem_login_form_before filter, which would allow you to add content before the login form. See this page of the User Guide for a full list of filter and action hooks: http://rocketgeek.com/plugins/wp-members/users-guide/filter-hooks/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect to a URL if page is blocked’ is closed to new replies.