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.

Display Membership Levels

Home Forums Community Forum Display Membership Levels

This topic contains 1 reply, has 2 voices. Last updated by  Raam Dev 4 years, 7 months ago.

Topic Author Topic
Posted: Tuesday May 15th, 2012 at 1:46 am #13450

Is it possible to display to the users what membership level they currently are at? For example – when a user logs in, have a status bar at the top of the my-account page that states: “SILVER MEMBER” or something like that? Any help is much appreciated. Thanks!

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Tuesday May 15th, 2012 at 3:51 am #13473
Raam Dev
Username: Raam
Staff Member

Hello Bryant,

Yes, you can use the S2MEMBER_CURRENT_USER_ACCESS_LABEL s2Member PHP Constant to display the current membership level for the logged in user:

<?php echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; ?>

or in shortcode format when displaying on a post/page (remove the spaces after and before the backets):

[ s2Get constant="S2MEMBER_CURRENT_USER_ACCESS_LABEL" / ]

Please see Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants for more examples.

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.