Skip to content

Instantly share code, notes, and snippets.

@Nerjuz
Created June 13, 2013 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nerjuz/5773091 to your computer and use it in GitHub Desktop.
Save Nerjuz/5773091 to your computer and use it in GitHub Desktop.
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