# 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.

- Type: PHP
- Runs: Run everywhere
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: yoast, admin-bar, cleanup
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/yoast-remove-admin-bar-menu/

## Code

```php
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 use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Remove the Yoast SEO Menu From the Admin Bar" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
