Hi
I would like to know where and how I could take the name of my subscriber ,
in order to put it on the welcome page?
thank you
ilana
PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
! | Before you read any further, you should install this handy plugin: PHP Execution. You'll need to have this plugin installed to use PHP code in Posts/Pages. |
S2MEMBER_CURRENT_USER_FIRST_NAME
This will always be a (string) containing the current User's First Name. Empty if not logged in.
<?php echo S2MEMBER_CURRENT_USER_FIRST_NAME; ?>
This may output something like: John
( or whatever their first name is )
---- s2member Shortcode Equivalent ----
[s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]
S2MEMBER_CURRENT_USER_LAST_NAME
This will always be a (string) containing the current User's Last Name. Empty if not logged in.
<?php echo S2MEMBER_CURRENT_USER_LAST_NAME; ?>
This may output something like: Smith
( or whatever their last name is )
---- s2member Shortcode Equivalent ----
[s2Get constant="S2MEMBER_CURRENT_USER_LAST_NAME" /]
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" /]
[s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]
Welcome [s2Get constant="S2MEMBER_CURRENT_USER_FIRST_NAME" /]!
Users browsing this forum: Yahoo [Bot] and 2 guests