How to hide WPML icon in the WordPress admin bar

Some WordPress users who use WPML on their sites may find this WPML admin bar icon annoying.

As there is no clear way how to remove it programmatically, a CSS hack can be used instead. Place this code in your theme functions.php file or a must-use plugin to get rid of it.

//Hide the WPML ATE status button via CSS
add_action('admin_head', function() {
    echo '<style>#wp-admin-bar-ate-status-bar {display:none}</style>';
});

Leave a Comment on How to hide WPML icon in the WordPress admin bar
About the author
I'm a full-stack WordPress developer with a 10+ years of solid experience in the core web development languages, development processes / techniques, web security, Linux server management and with pretty good understanding about proper semantics, UX/UI, technical SEO, good design and basic knowledge of company leadership. On top of that - a distant 5+ years experience as a computer and electronics repair technician which often enables me to understand also how the things work at the hardware level.
Your feedback matters!…
I hope you found this article helpful. Feel free to add some comments - your feedback is very important to me, as it drives my motivation and helps me to improve the content.