Plugin Reviews

WP Block Admin

Block access to the admin interface based on user capability. The default is only editors and admins are allowed access, but the required capability c

6 reviews
Average Rating
5 out of 5 stars
You are currently viewing the reviews that provided a rating of 5 stars. Click here to see all reviews.
old plugin but still good
By , for WP 4.3

The code for this plugin is very simple which explains why it hasn't needed an update for several years. So far I've installed it on one site and no problems yet.

It's a great solution for those sites where the user profile is provided by our front-end and in some cases the username/password are synced from an external source, or depend on external values and therefore can't be modified.

By , for WP 3.4.2

Works extremely well..saved long hours of coding

does what it says
By , for WP 3.5

more configurable than I've expected.

Worked as stated
By , for WP 3.4.2

Avoided all the code problems.

after wp_redirect
By , for WP 3.4.2

You should add an "exit" command after wp_redirect at line 77. I tested your plugin and without exit; in some circumstances wp_redirect doesn't fullfill its functionality. For example with custom posts (url: WORDPRESSSITENAME/wp-admin/edit.php?post_type=customposttype).

I added the exit; command after wp_redirect and after that your plugin works perfect. Thank you.

Great - solves conflict between front-end ajax and backend-access
By , for WP 3.4.2

This plugin is GREAT, and solved a big problem for me.

My site uses bbPress, a forum plugin that uses AJAX for the links that let a logged-in forum user to Favorite or Subscribe To a topic. But of course I don't want these forum users to see my wp-admin backend. So I tried a simple hook in my functions.php:

if ( is_admin() && ! current_user_can( 'administrator' ) ) {
        wp_redirect( home_url() ); exit;

But this breaks the AJAX links because they actually point to a core file: wp-admin/admin-ajax.php. So either my forum ajax links are broken, or my forum users can see my wp backend.

This plugin solves the problem, by testing for a certain Capability (which you can specify).

Excellent plugin. Thank you!

You must log in to submit a review. You can also log in or register using the form near the top of this page.