Statistics: Posted by Raam Dev — December 1st, 2011, 8:28 pm
Statistics: Posted by defeyter — December 1st, 2011, 9:17 am
S2MEMBER_CURRENT_USER_LOGIN
This will always be a (string) containing the current User's Username. Empty if not logged in.
<?php echo S2MEMBER_CURRENT_USER_LOGIN; ?>
This may output something like: johnsmith22
( or whatever their login/username is )
---- s2member Shortcode Equivalent ----
[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]
<a href="/members/[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]/profile/">My Account</a>
<a href="/members/<?php echo S2MEMBER_CURRENT_USER_LOGIN; ?>/profile/">My Account</a>
Statistics: Posted by Raam Dev — December 1st, 2011, 1:44 am
Statistics: Posted by defeyter — November 30th, 2011, 3:13 pm