Hide news from non-admins + add .role in bodyclass

Even centralized in a Modal, it’s still a distraction in the backend for editor, it’s possible via CSS:

li#wp-admin-bar-asenha-hide-admin-notices {
    display: none;
}

But this hides it for the Administrator too, which makes me think of a new suggestion, which is the option to add the ROLE as Body.Class, so I could finely customize the interface for Editors, Subscribers…

body:not(.superadmin) li#wp-admin-bar-asenha-hide-admin-notices {
    display: none;
}

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer