• Resolved jetxpert

    (@jetxpert)


    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 1 replies (of 1 total)
  • Thread Starter jetxpert

    (@jetxpert)

    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!

Viewing 1 replies (of 1 total)
  • The topic ‘Got Snippet? (Disable Admin Notices)’ is closed to new replies.