How can I add custom capabilities to this form in order to show what the person have access to?
[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
How can I add custom capabilities to this form in order to show what the person have access to?
[s2If current_user_can(access_s2member_level1)]
Some content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
Hi Agnes.
Please see: https://s2member.com/kb-article/s2if-simple-shortcode-conditionals/#toc-cc6d1c60
Thank you - I saw it but because I’m using only level 1 with custom capabilities for my products. Do I have to rewrite the code like this:
[s2If current_user_can(access_s2member_level1_ccap_?)]
Content for Members who are logged in with an s2Member Level >= 1.
[/s2If]
In oder to list all the products they own.
I see what you mean. No, you’d do this:
[s2If current_user_can(access_s2member_level1)]
Some content for members who have level 1 access.
[/s2If]
[s2If current_user_can(access_s2member_ccap_video)]
Some content for members who have ccap video.
[/s2If]
You can do that for each access, one conditional section after the next.
And if you have some content for users who have a certain combination, then for example:
[s2If current_user_can(access_s2member_level1) AND current_user_can(access_s2member_ccap_video)]
Some content for Members who have both, level 1 and ccap video, access.
[/s2If]