Friday 25 January 2013

How to disable Dashboard welcome panel in wordpress?

How to disable Dashboard welcome panel in wordpress...??

In wordpress Dashboard all new release & update will be displayed. Sometimes we are not interested into this type of page, for that wordpress provide features to disable dashboard new update & release news.Therefore, a small function that suppresses the info screen and adjust the user settings, so this screen won't appear.



Add below function, after that you can't see the dashboard welcome panel in wordpress.
or you can do this also manually via "Dismiss" link, on right top of the welcom panel.

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 
                       return;
             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 ); }

No comments:

Post a Comment