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 | |
/** | |
* Hide WordPress Update Nag to All But Admins | |
*/ | |
function hide_update_notice_to_all_but_admin() { | |
if ( !current_user_can( 'update_core' ) ) { | |
remove_action( 'admin_notices', 'update_nag', 3 ); | |
} |