How to prevent non-admins from accessing “/wp-admin” dashboard?
-
Is there a code I can place inside functions.php that will prevent non-admins from accessing the “/wp-admin” dashboard? Ideally, this code will redirect non-admins to the homepage.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.