Hi,
I guess this kind of plugin would do the trick 😉 https://fr.wordpress.org/plugins/adminimize/
Cheers,
Hmm, I hate to install such a weighty plugin for just one little tweak. I already have User Role Editor installed – if you can you tell me the capability that allows WP SEO to be seen on the dashboard, I can remove it from the job candidate role. Thanks!
Hmm, I hate to install such a weighty plugin
Yes got that, I’ll check if we can provide some custom stuff to do that.
OK so here it is, you can add the following code to your function.php file to make your widget visible only to admin:
global $current_user;
if(!empty($current_user)){
$roles = $current_user->roles;
$role = array_shift($roles);
if($role != ‘administrator’){
add_action(‘wp_dashboard_setup’, ‘remove_dashboard_widgets’);
}
}
function remove_dashboard_widgets() {
global $wp_meta_boxes;
unset($wp_meta_boxes[‘dashboard’][‘normal’][‘core’][‘wpms_dashboard_widget’]);
}
Let me know! << do not copy that 🙂