Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users gain immediate access even if -status pending- #64

Closed
cremigerhonig opened this issue Jan 31, 2022 · 2 comments
Closed

Users gain immediate access even if -status pending- #64

cremigerhonig opened this issue Jan 31, 2022 · 2 comments

Comments

@cremigerhonig
Copy link

Using PMPro with Pay by check

unfortunately new users gain immediate access to content that is blocked by shortcode immediately after registration (pay by check) even if status is marked as pending

@ideadude
Copy link
Member

ideadude commented Feb 2, 2022

Related issue with work around: #16

@ideadude ideadude closed this as completed Feb 2, 2022
@cremigerhonig
Copy link
Author

`/** pending user can see content hidden content by shortcodes
*/

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); `

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants