Created
April 14, 2019 05:13
-
-
Save schutzsmith/9a33be9550bc70a208a6981fd5f7aa5b to your computer and use it in GitHub Desktop.
Remove WordPress Updates Notification
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
// remove update notifications | |
<?php | |
function no_update_notification() { | |
if (!current_user_can('activate_plugins')) remove_action('admin_notices', 'update_nag', 3); | |
} | |
add_action('admin_notices', 'no_update_notification', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment