WordPress.org

Ready to get started?Download WordPress

Forums

WP-Members
[resolved] Redirect to a URL if page is blocked (4 posts)

  1. drummerboy
    Member
    Posted 8 months ago #

    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/

  2. Chad Butler
    Member
    Plugin Author

    Posted 8 months ago #

    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.

  3. drummerboy
    Member
    Posted 8 months ago #

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

  4. Chad Butler
    Member
    Plugin Author

    Posted 8 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.