1/** This code may be used in functions.php, wp-config.php, or used to create an mu-plugin
2* The purpose of the code is to remove all the anoying popups in WordPress
3*/
4
5add_action('admin_enqueue_scripts', 'ds_admin_theme_style');
6add_action('login_enqueue_scripts', 'ds_admin_theme_style');
7function ds_admin_theme_style() {
8 if (!current_user_can( 'manage_options' )) {
9 echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none; }</style>';
10 }
11}