Remove admin notices

How to remove annoying admin notices (plugins update, setup, etc.) from WordPress backend for the selected role?


Starting from version 4.21 User Role Editor allows you to create your own options for the roles and link the custom PHP code to them.
This feature realized via ure_role_additional_options filter.

This code allows to hide all admin notices for the selected role:

Just add the code above (without starting php tag) to your active theme functions.php and turn ON new added ‘Block admin notices’ option for the selected role.

Share