I am trying to make a custom dashboard for a customer.
I would like to hide every plugin menu appearing in the dashboard. So far I could hide just wordpress seo adding this code to functions.php:
function hide_yoastseo() {
remove_action('admin_bar_menu', 'wpseo_admin_bar_menu',95);
remove_menu_page('wpseo_dashboard');
}
add_action( 'admin_init', 'hide_yoastseo');
However I do not understand the logical here to aplly others plugins.