Created
March 2, 2014 02:22
-
-
Save mavisland/9300922 to your computer and use it in GitHub Desktop.
How to: Disable the “please update now” message in WP dashboard. When a new version of WordPress is available, a message asking you to update your WP installation is displayed on your dashboard. Even if you better update, sometimes you may want to hide this message. Here is how to do it. To get rid of the “Please update now” message in your Word…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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