Skip to content

Instantly share code, notes, and snippets.

@Nerjuz
Created Jun 13, 2013
Embed
What would you like to do?
Disable the “please update now” message in WP dashboard
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;" ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment