'sidebar-2' => array
( 0 => 'block-5',
1 => 'block-6',
),
'array_version' => 3,
) );
if ( !
is_multisite() ) { update_user_meta( $user_id, 'show_welcome_panel', 1
);
} elseif ( !
is_super_admin( $user_id ) && !
metadata_exists( 'user',
$user_id, 'show_welcome_panel'
) ) { update_user_meta( $user_id, 'show_welcome_panel', 2
);
} if ( is_multisite() ) { // Flush rules to pick up the new page.
$wp_rewrite->
init();
$wp_rewrite->
flush_rules();
$user =
new WP_User( $user_id );
$wpdb->
update( $wpdb->options, array
( 'option_value' =>
$user->user_email
), array
( 'option_name' => 'admin_email'
) );