This should be pretty simple using the built-in features of UserPress:
if(current_user_can('memberpress_authorized')) {
}
else {
}
MemberPress also adds features for each MemberPress membership so you can also do something like this:
if(current_user_can('memberpress_product_authorized_123')) {
}
else {
}
In the second example, the number 123 is the MemberPress membership identifier.
source
share