Page 1 of 1
checking membership level

Posted:
July 5th, 2010, 6:19 am
by MARK
Hi.
I want to exclude a part of the site hardcoded by myself.
So looking for something like:
if(is_membership_level(bronze)){
/////print content
}else{
////print protected area info
}
Re: checking membership level

Posted:
July 5th, 2010, 6:22 am
by marek
Just found, sorry..
<?php if (is_user_logged_in() && current_user_can("access_s2member_level1")){ ?>
Some content for Members who are logged in with an s2Member Level >= 1.
<?php } else { ?>
Some public content.
<?php } ?>
Re: checking membership level

Posted:
July 8th, 2010, 6:09 am
by Jason Caldwell
Awesome. Thanks for the followup.
For the benefit of other readers, you can find documentation on "Advanced Conditionals", inside your WP Dashboard, under: s2Member -> API Scripting -> Advanced Conditionals.