Remove the WordPress logo menu and its links to WordPress.org from the top-left of the admin bar.
add_action( 'admin_bar_menu', function ( WP_Admin_Bar $bar ): void {
$bar->remove_node( 'wp-logo' );
}, 999 );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
The WordPress logo menu links to WordPress.org, its documentation and support forums. Clients rarely need those links, and white-labelled sites look cleaner without them.
The logo menu is the admin bar item with the id wp-logo. Removing it late on admin_bar_menu takes the logo and all its sub-links away, in wp-admin and on the front end.
/wp-admin/about.php.Reload any page with the admin bar. The WordPress logo should be gone from the top-left.
This website uses cookies to make it work and to understand how it is used. Some cookies are strictly necessary for the site to function and cannot be switched off. Others help us analyse how visitors use the site using our self-hosted analytics tools.
We use Plausible Analytics, which sets no cookies and collects no personal data. We also use Matomo Analytics, which sets cookies only if you choose to accept them. Both tools run entirely on our own servers and no data is shared with any third party. We do not use advertising or social media cookies.
If you are under 16 years old, please make sure you have your parent or guardian's permission before accepting any non-essential cookies.
You can accept all cookies, decline non-essential cookies, or adjust your preferences at any time by clicking Cookie Settings in the footer of this site. For full details on every cookie we use, read our Cookie Policy. For information on how we handle your data, read our Privacy Policy.
Declining analytics cookies will not affect your ability to use this site.
Some required resources have been blocked, which can affect third-party services and may cause the site to not function properly.
This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.