Block wp-admin.php for non admin users in wordpress

I want to use the user structure in wordpress for a website, but when a user logs in using the traditional wp-login.php, if the user is not an admin, it enters wp-admin.php with it's profile and a dashboard.

I don't want that. I would like that, after a successfull login, all non admin users to be redirected by the main page, and every time a non admin user tries to enter in wp-admin.php to redirect them as well.

Is there a plugin for that? Thanks!

Upvotes: 1

Views: 2900

Answers (1)

Pekka
Pekka

Reputation: 449525

I haven't used it, but this looks promising: Hiding the WordPress Dashboard for Non-Admin Users

Upvotes: -1

Related Questions