Nope I’m using remove dashboard access, https://wordpress.org/plugins/remove-dashboard-access-for-non-admins/ =) it’s the first one I came across which does exactly what I want.
I didn’t want to just hide the admin bar I wanted to completely disable it for anyone who isn’t admin.
And if someone try’s to access WP-admin they are redirected to a page of my choosing. =D
I debugged my site and found the culprit, it would appear my site didn’t like my custom function,
function baw_no_admin_access()
{
if( !current_user_can( 'administrator' ) ) {
wp_redirect( home_url() );
}
}
add_action( 'admin_init', 'baw_no_admin_access', 1 );
Iv’e now removed it and use a plugin to block access to the dashboard. 🙂