Blocking Administrative Access to Authors and Subcribers?
Create a functionality plugin and use this if you want to completely block the access to the Admin panel: /** * Hide the admin bar in the front end */ add_filter(‘show_admin_bar’, ‘__return_false’); /** * Redirects Authors and Subscribers to the site front page using: get_home_url() */ add_action(‘admin_init’,’block_users_wpse_53675′); function block_users_wpse_53675() { if( !current_user_can( ‘delete_pages’ ) ) … Read more