Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- paste in function.php file
- function hide_update_notice_to_all_but_admin_users()
- {
- if (!current_user_can('update_core')) {
- remove_action( 'admin_notices', 'update_nag', 3 );
- }
- }
- add_action( 'admin_head', 'hide_update_notice_to_all_but_admin_users', 1 );
- function remove_core_updates(){
- global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
- }
- add_filter('pre_site_transient_update_core','remove_core_updates');
- add_filter('pre_site_transient_update_plugins','remove_core_updates');
- add_filter('pre_site_transient_update_themes','remove_core_updates');
Add Comment
Please, Sign In to add comment