• I have a multisite setup using customizr pro them, how can I hide “Good, you’ve just upgraded” notices on multisite sites, I would like to not have customers seeing these, just the superadmin seeing update and thank you notices.

    I just saw that It looks like it is triggered on lass-fire-admin_init.php
    It only shows it 5 times then hides. starts line 299

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    From the customiser, go to Advanced Options > Front end placeholders and help blocks.
    Remove the check against Display help notices on front-end for logged in users.

    Thread Starter jontaarcs

    (@jontaarcs)

    Menaka, thanks for the response. I have that unchecked already. I was not clear in my question now that I read it again.

    The message I am looking at is displayed to a multi site user when they login and go to the admin screen / dashboard.

    Example I just created a new site, test2, login, and it shows me the message at the top of the dashboard “Good, you’ve just upgraded to Customizr Pro version 1.2.21” I am trying to not how these messages.

    This is a bit of a guess in the dark, so may not work:

    #tc-dismiss-update-notice {
    display: none;
    }
    Thread Starter jontaarcs

    (@jontaarcs)

    rdellconsulting,

    Thanks for the information. I tried that and it works fine. For others here is what I did.
    in my child theme function.php I added

    function safely_add_stylesheet_to_admin() {
    wp_enqueue_style( ‘prefix-style’, get_stylesheet_directory_uri() . ‘/admin-style.css’, false, ‘1.0.0’ );
    }
    add_action( ‘admin_enqueue_scripts’, ‘safely_add_stylesheet_to_admin’ );

    created admin-style.css in child theme folder and added
    .wp-admin .wrap .updated {
    display: none;
    }

    I ended up thought figuring out how to use remove_action to do this. Here is the code. Super Admin still sees the message on the dashboard for that specific site. But multisite admins do not. Tested by updating the database record to re-trigger the message.

    /**
    *
    * Remove Customizr notice after theme updates on multisite sites
    * “Good, you’ve just upgraded to Customizr Pro version 1.2.21”
    * Continue to show with Super Admins
    */
    function remove_customizr_updates_message()
    {
    if (current_user_can(‘manage_network’)) {
    return;
    }
    remove_action(‘admin_notices’, array(TC_admin_init::$instance, ‘tc_may_be_display_update_notice’));
    }
    /* Without the if statement I get “PHP Fatal error: Class ‘TC_admin_init’ not found in” so tried this */
    if (is_user_logged_in()) {
    add_action(‘init’, ‘remove_customizr_updates_message’);
    }

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘customizr how to hide notices or "Good, you've just upgraded" on multisite sites’ is closed to new replies.