Page 1 of 1

Access label in PHP

PostPosted: May 13th, 2011, 7:25 am
by sixagency
HI,

I am editing theme_functions.php and I would like to add the current user's level or (access Label), after .$current_user->display_name.

How can I do that?
Thank you!

Re: Access label in PHP

PostPosted: May 13th, 2011, 8:46 am
by Cristián Lávaque
You could try this:

Code: Select all
echo S2MEMBER_CURRENT_USER_ACCESS_LABEL; 


WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants

Re: Access label in PHP

PostPosted: May 13th, 2011, 10:52 am
by sixagency
Thank you Christian,

You rock as always!!!

Re: Access label in PHP

PostPosted: May 13th, 2011, 11:43 am
by Cristián Lávaque
:)