Remove the Yoast SEO Menu From the Admin Bar
Takes the Yoast SEO item out of the toolbar on the front end and in the admin for everyone.
Opens WPIDE on
Code
add_action( 'admin_bar_menu', function ( $bar ) {
$bar->remove_node( 'wpseo-menu' );
}, 999 );
Notes
Yoast also has a setting for this under Settings > Site features; this snippet keeps it off for every user.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.