Ready to get started?Download WordPress

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

5 reviews
Average Rating
4 stars
4.5 out of 5 stars
5 stars
By , for WP 3.4.2

Works extremely well..saved long hours of coding

5 stars
does what it says
By , for WP 3.5

more configurable than I've expected.

5 stars
Worked as stated
By , for WP 3.4.2

Avoided all the code problems.

5 stars
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.

5 stars
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.