Created
December 9, 2016 15:41
-
-
Save janspants11/c456ba628c962f3afe0098b147839ad9 to your computer and use it in GitHub Desktop.
Unhook WP notifcations
This file contains hidden or 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 | |
| function _remove_admin_notifications() { | |
| remove_all_actions( 'admin_notices' ); | |
| } | |
| add_action( 'admin_init', '_remove_admin_notifications', 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment