You asked for context. I provided the situation. I was curious why it wouldn’t be an option when there are shortcodes and PHP scripts provided that do that exact same thing.
current_user_is(“s2member_level2”) - that in a pre-defined capability is what I was wondering existed. Just a thought going forward if it’s really not. I use these inline in multiple sections of my website, and it’s a great feature. As a capability it would really work well with other plugins.
It’s an entire section of the API Scripting:
<?php if (current_user_is("s2member_level4")){ ?>
Some premium content for Level 4 Members.
<?php } else if (current_user_is("s2member_level3")){ ?>
Some premium content for Level 3 Members.
<?php } else if (current_user_is("s2member_level2")){ ?>
Some premium content for Level 2 Members.
<?php } else if (current_user_is("s2member_level1")){ ?>
Some premium content for Level 1 Members.
<?php } else if (current_user_is("s2member_level0")){ ?>
Some content for Free Subscribers.
<?php } else { ?>
Some public content.
<?php } ?>
You’ve have to pardon my curiosity on why it’s not pre-defined WP capability too. My first thought, it probably was and I likely just can’t find it or figure it out.