Support » Plugin: Hide Backend Notices » Got Snippet? (Disable Admin Notices)

  • Hi there,

    Reviewed your plugin code. Pretty awesome!

    Is their any way you can provide a snippet (php code) that only disables admin notices in the backend? (either all notices or for individual plugins).

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi there (again),

    Just found snippet noted below. Works like a charm, but would like to modify it to disable admin notices for individual plugins. Can you assist?

    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!

    Plugin Author hk1993


    Thanks for sending @jetxpert, please contact me via and we’ll definitely do the needful to you. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.