Ready to get started?Download WordPress


Remove Login from Restricted pages (3 posts)

  1. jbrowne
    Posted 9 months ago #

    I have a simple requirement. I would like to Remove the Login form from Restricted pages. I am using WP-members for my membership management but I also have a plugin which offers social login to my site. Therefor I need to manage what is returned on a restricted pages. I will give the users a choice of login on these restricted pages. I have been able to get my html which offers this choice onto the restricted page using the dialogs in settings. I have been able to remove registration form by disabling it. Now I am left with the Login below my html on the restricted page but I no longer need it as I am asking the user to choose how they login and then sending them to a custom login page which has your short code.

    See example http://freetemplates.brightwork.com/your-feedback/

    Is there a simple way of doing this? I have trying function filters but I imagine there is a line in php I could just simply comment out which would stop returning this on the restricted pages.




  2. Chad Butler
    Plugin Author

    Posted 9 months ago #

    Filtering it out is the way to go. If you comment out code in the plugin, you'll just overwrite your change when you update the plugin.

  3. jbrowne
    Posted 9 months ago #

    Thanks Chad. May I say the plugin is great. A real problem solver for me due to my requirements.

    Yes I felt it was a filter. I wonder if you may have some instruction as to how I may do this? The filters I have tried so far have failed.

    I think this is something which would greatly benefit all of the wp-member users. You have made some really useful shortcode available for creating custom login pages but unfortunately have no simple approach to using these in conjunction with a restricted a page.

    Thanks for any advice given.


You must log in to post.

About this Plugin

About this Topic