Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Dynamically Display HTML depending on User

@shanebp

Moderator

Your question now seems to be about s2member, not BuddyPress.

How are you setting this variable: $s2member_level1 ?

If you want to display the paybox based on s2member level, then use an s2member function to set $s2member_level1 or use a constant.

if( 2 == S2MEMBER_CURRENT_USER_ACCESS_LEVEL ) // etc
https://www.s2member.com/codex/stable/s2member/api_constants/package-globals/#src_doc_S2MEMBER_CURRENT_USER_ACCESS_LEVEL

Skip to toolbar