Add-on: remove Yoast SEO entry from left menu
Closed this issue · 1 comments
pixeline commented
Nice initiative!
Here is a small add-on. In my case, only Administrators should see SEO stuff, so I overwrote the relevant line in your plugin sourcecode. That's why I'm not doing a Pull Request for this, but do feel free to add it:
function remove_menus(){
if (!current_user_can('manage_options')) {
remove_menu_page( 'wpseo_dashboard' ); // YOAST SEO
}
}
add_action( 'admin_menu', 'remove_menus' );