Support » Plugin: Simple Access Control » Redirect to 404 instead of Message

  • pistolero85


    I installed to my WP 4.3.1 and it works. I need to make some changes. I want NOT to show message “Please login to view this content”. I want completely redirect users to 404 if page locked for not registered users.
    Can someone tell me where to change the code. Thank you. Nice plugin

    PS: few days ago I installed User Access Manager and my VPS went down immediately. I guess it’s due to tons of requests to DB.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Peter Wooster


    You need to add a redirect near line 104. That is where the code sets the locked text for a page.

    Plugin Author Peter Wooster


    I’ve added an option to produce a 404 Not Found error when a user tries to access a restricted page or post directly. Please give it a try.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect to 404 instead of Message’ is closed to new replies.