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

  1. drummerboy
    Posted 2 years 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 :)


  2. Chad Butler
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

  4. Chad Butler
    Plugin Author

    Posted 2 years 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.