3.3: How do you hide the new dashboard welcome panel?

I have tried various versions of this here:

unset($wp_meta_boxes['dashboard']['normal']['high']['dashboard_wp_welcome_panel']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_wp_welcome_panel']);
unset($wp_meta_boxes['dashboard']['normal']['core']['wp_welcome_panel']);
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_welcome_panel']);
unset($wp_meta_boxes['dashboard']['normal']['core']['welcome_panel']);

I have tried looking this up but as there is not much documentation (there is but there isn’t ) on it yet it is kind of hard.

I was wondering if someone could please help me out. I would really appreciate it. Thanks. 🙂

2 s
2

If you’re using multisite, there’s a plugin you can network activate to disable the welcome panel on all new sites. It’s aptly named “Hide Welcome Panel for Multisite.”

If you just want to do this for a typical (single site) installation, it’s also pretty easy. The welcome screen is shown for a user if a specific meta key is set. So, add the following to a plugin and activate it …

add_action( 'load-index.php', 'hide_welcome_panel' );

function hide_welcome_panel() {
    $user_id = get_current_user_id();

    if ( 1 == get_user_meta( $user_id, 'show_welcome_panel', true ) )
        update_user_meta( $user_id, 'show_welcome_panel', 0 );
}

This code is adapted directly from the above-mentioned plugin, but I haven’t had a chance to personally test it …

Leave a Comment