How do I hide admin notices for all by Super Admin (myself) on a multisite network?

I'd like to hide all notices in the admin for anyone but me. However, I'd still like to use the notice space to push my own notices using the Admin Panel Tips plugin.

Is this possible? If so, how?

  • Sajid

    Hi @Scott

    Hope you are doing good today :slight_smile:

    You can remove all notices of WordPress by adding this code in mu-plugins.

    function hide_update_noticee_to_all_but_admin_users()
    {
        if (!is_super_admin()) {
            remove_all_actions( 'admin_notices' );
        }
    }
    add_action( 'admin_head', 'hide_update_noticee_to_all_but_admin_users', 1 );

    If you want to enable your Tips then I am afraid you can not do this no by hooking "admin_notices" because it will remove all notices. Instead you can add your custom notices in footer section or as metabox on dashboard.

    Take care and have a nice day :slight_smile:

    Cheers, Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.