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

  • pistolero85

    (@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.

    https://wordpress.org/plugins/simple-access-control/

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

    (@pkwooster)

    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

    (@pkwooster)

    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.

    /peter

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