How-to and Troubleshooting
5
Posts
3
Users
0
Reactions
2,601
Views
Jun 12, 2020 3:49 pm
Good Day!
This is not a bug report, only a request.
There are occasions when your plugin displays notifications in our WP dashboard (all pages). These notices are in addition to the ones displayed in your plugin dashboard. Certainly, a quirk in your plugin.
Can you provide a snippet that deletes your notices everywhere, except in your plugin dashboard? (a nice challenge for your developers). These notices can be a nag. As you know, over time, many have complained about these nagging site-wide notices generated by plugins.
Currently, we're using code below. Works well, but disables ALL notices. We need one just for your plugin.
add_action('admin_enqueue_scripts', 'hidenotice_admin_theme_style');
add_action('login_enqueue_scripts', 'hidenotice_admin_theme_style');
function hidenotice_admin_theme_style() {
echo '<style>.update-nag, .updated, .error, .is-dismissible { display: none !important; }</style>';
}
Thank you!
4 Replies
Jun 13, 2020 9:11 am
Hi @aerostar,
We don't follow you well. Could you please clarify a bit? What message do you mean?