PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
Cristián Lávaque wrote:Thanks for reporting back.
Are you using a caching plugin?
<?php if (current_user_can('access_s2member_ccap_bundle') || current_user_can('access_s2member_ccap_1993')) { ?>
Show the content.
<?php } else { ?>
Sell him the access.
<?php } ?>
Cristián Lávaque wrote:About the bundle ccap, that's fine, but not if you use the meta box in the edit page to restrict access, because if you enter there bundle and the ccap for that specific page (e.g. bundle,1993) it'll require both ccaps to let the user, but he'll only have one or the other. In this case you'll have to instead use condiitonals, like:
- Code: Select all
<?php if (current_user_can('access_s2member_ccap_bundle') || current_user_can('access_s2member_ccap_1993')) { ?>
Show the content.
<?php } else { ?>
Sell him the access.
<?php } ?>
I hope that helps.
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest