Answer the question
In order to leave comments, you need to log in
How to redirect a regular user to 404 in wordpress if he climbs into the admin panel?
Hello.
Please tell me how to do something like this.
If I enter the site as an admin, I can go to the admin panel in plugins, etc. site/wp-admin/plugins.php
But if a regular user enters site/wp-admin/plugins.php without admin rights, then he needs to be redirected to 404 page.
How to do this. Thank you.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question