Answer the question
In order to leave comments, you need to log in
How to restrict access to wp-admin and wp-login.php in Wordpress portal?
Good day!
There is a portal system on wordpress with a custom registration and authorization form (pop-up window) through which users of the Authors group enter.
In addition to this, wordpress social login works which accesses wp-login.php
1. It is necessary for authors to restrict access to the admin panel, since they have their own profile in buddypress.
2. Deny access to all links /login, /wp-admin, /admin, /wp-login.php to all users, but so that authorization through the social. networks worked and logging out of the buddypress profile also worked.
On a good note, I come to the conclusion about the need for a single form of authorization, either for the admin or for a simple author.
How can the above restrictions be correctly implemented? No plugins!
Answer the question
In order to leave comments, you need to log in
Hello. Have you looked at the Users Role Editor plugin by any chance?
And for a personal account and a unified authorization system, see the Wp Recall plugin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question