latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Conditional tag for Level 2 and up

Home Forums Community Forum Conditional tag for Level 2 and up

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 3 years, 6 months ago.

Topic Author Topic
Posted: Sunday Jun 23rd, 2013 at 1:43 am #52408
aus_team
Username: austeam

Hi,

What is the conditional tag for s2 levels?

I am using this plugin
http://wordpress.org/plugins/menu-items-visibility-control/

To show menu item based on conditional tags built in to wordpress. I am sure you have somthing similar because I saw your conditional short code. I just need to know the right format of the conditional tags for s2 levels.

Let say I want to show something for s2 level 2 and up, what is the conditional tag for that?

Thanks

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Sunday Jun 23rd, 2013 at 6:15 am #52434

You can see the explanation and examples for conditionals here:
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced Query Conditionals[/hilite]

Also:
Knowledge Base » Simple Shortcode Conditionals
Video » s2Member (Advanced Conditionals)

Let say I want to show something for s2 level 2 and up, what is the conditional tag for that?

[[s2If current_user_can(access_s2member_level2)]
    Some content for Members who are logged in with an s2Member Level  2 or higher.
[/s2If]]
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.