Keep Logged in Users out of Admin Panel
You can remove the read capability from subscribers, which is what gives them access to the dashboard. This is best done with an activation hook on a plugin — it only needs to be done once. <?php register_activation_hook( __FILE__, ‘wpse43054_activation’ ); function wpse43054_activation() { $role = get_role( ‘subscriber’ ); if( $role ) $role->remove_cap( ‘read’ ); … Read more