Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Fix to block pending users from viewing any access
- function gw_pmpro_has_membership_level($hasaccess, $user_id, $levels)
- {
- //if they don't have access, ignore this
- if(!$hasaccess)
- return $hasaccess;
- $hasaccess = ! pmpropbc_isMemberPending($user_id);
- return $hasaccess;
- }
- add_filter("pmpro_has_membership_level", "gw_pmpro_has_membership_level", 10, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement