19
Oct
How to hide the “Please Update Now Message” On WordPress Dashboard
- Category:
- Wordpress

Posted On : October 19, 2013
| No Comment
When we go in our wordpress website dashboard its automatically lets us know when a new version of WordPress is released by inserting a message at the top of admin pages. This is definitely a good thing, because updating gives your blog the latest functions and security fixes. But if the blog is a client project, letting the client control updates may not be a good idea.
See the below image
So we have solution to make them hide from coding.
You need to paste these four lines of code in your functions.php file:
View Code PHP
1 2 3 4 | 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;" ) ); } |
Once the functions.php will save this message wont’display on Dashboard.
- Tags: