PHP code snippet – How to remove annoying plugin notification in wordpress?
/** This code may be used in functions.php, wp-config.php, or used to create an mu-plugin * The purpose of the code is to remove all the anoying popups in WordPress */ add_action('admin_enqueue_scripts', 'ds_admin_theme_style'); add_action('login_enqueue_scripts', 'ds_admin_theme_style'); function ds_admin_theme_style() { if (!current_user_can( 'manage_options' )) { echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none; }</style>'; } }
Curly hair, very fair, please share 🙂
Related
disable notification in wordpress, disable notifications in wordpress, disable wordpress notifications, hide notifications wordpress, how to remove annoying plugin notification in wordpress, how to remove plugin notices on wordpress, plugin to hide all wordpress plugin notifications, remove all notifications from admin panel in wordpress, remove notifications from wordpress, wordpress admin notifications hide, wordpress back office hide error alerts, wordpress disable dashboard notifications, wordpress disable plugin notifications, wordpress hide admin notifications, wordpress hide dashboard notifications, wordpress hide notifications premium plugins, wp notifications disable