Hide Welcome Panel for WordPress Multisite

With a major release update of WordPress, everytime all new functions will be displayed after updating. Basically a good idea, which displays all new features on one page. However, this is not always intentional. In the corporate environment, large groups of users aren’t interested in it, so that this screen only provides additional work for the support team.
WordPress has implemented an option for every user. Therefore, a small function that suppresses the info screen and adjust the user settings, so this screen won’t appear.

The functions belongs in a little Plugin and is loaded when the index.php is called, so when you enter the dashboard. It is then verified that the settings of each user to entry show_welcome_panel is 2. If so, then the welcome-screen shown and therefore the Plugin sets the value to 0. You can do this also manually via the “Dismiss” link, on right top of the welcome panel, or via URL param /?welcome=0.

add_action( 'load-index.php', 'fb_hide_welcome_panel_for_multisite' );
function fb_hide_welcome_panel_for_multisite() {
	if ( ! is_multisite() ) // don't check, if you will use this on single install of WP
	if ( 2 === (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', TRUE ) )
		update_user_meta( get_current_user_id(), 'show_welcome_panel', 0 );