Last active
August 29, 2015 14:04
-
-
Save gmax21/338016517ce787d35bf0 to your computer and use it in GitHub Desktop.
Remove the message "You are logged in as a Membership Admin user, you will therefore see all protected content on this site." from WPMU DEV Membership plugin.
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
function remove_custom_admin_actions(){ | |
global $membershipadmin; | |
remove_action('all_admin_notices', array($membershipadmin, 'show_membership_status_notice')); | |
} | |
add_action( 'admin_init', 'remove_custom_admin_actions', 99); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment