Hi,
When a new version of WordPress is available, update now WordPress message is displayed on your dashboard. It is always better so that you can identify the latest released version and upgrade the installed. But many wordpress users wants to disable this message on their dashboard. For that you need to add this code in functions.php file of your theme:
if ( !current_user_can( ‘edit_users’ ) )
{
add_action( ‘init’, create_function( ‘$a’, “remove_action( ‘init’, ‘wp_version_check’ );” ), 2 );
add_filter( ‘pre_option_update_core’, create_function( ‘$a’, “return null;” ) );
}
That’s it!
Thanks,
Shane G.
Popularity: 1%