Skip to content

Instantly share code, notes, and snippets.

@gmax21
Last active August 29, 2015 14:04
Show Gist options
  • Save gmax21/338016517ce787d35bf0 to your computer and use it in GitHub Desktop.
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.
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