Give Administrator All Access
-
I want to give administrator access to everything any member has access to for obvious reasons (They’re an administrator…) I did find a filter that does this:
function proFilterasdf($hasaccess){ if(is_user_logged_in() && current_user_can('administrator')) $hasaccess = true; return $hasaccess; } add_filter('pmpro_has_membership_access_filter', 'proFilterasdf', 10);
which works relatively well but I’d like for the administator to see the “My Account” page rather then user levels but I can’t find the filter to allow this. I’ve added the page template to my theme so I could try and allow this. The first IF statement I allow admins but there’s a redirect before that somewhere in a filter that is telling non-members to go to the Levels page instead of “My Account”.
What is that filter and how can I give admin access to “My Account” page instead of Levels.
- The topic ‘Give Administrator All Access’ is closed to new replies.