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™

username code

s2Member Plugin. A Membership plugin for WordPress®.

username code

Postby toble89 » November 17th, 2011, 3:17 pm

Is there any "quick-code" as you can use on the page there you can show the loged-in username anywhere?
User avatar
toble89
Registered User
Registered User
 
Posts: 2
Joined: November 17, 2011

Re: username code

Postby Eduan » November 17th, 2011, 3:25 pm

Code: Select all
[s2Get constant="S2MEMBER_CURRENT_USER_LOGIN" /]
This may output something like: johnsmith22
( or whatever their login/username is ) 

I found this under WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants.

Hope this helps. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: username code

Postby toble89 » November 17th, 2011, 3:39 pm

Thanks! :D
User avatar
toble89
Registered User
Registered User
 
Posts: 2
Joined: November 17, 2011

Re: username code

Postby Eduan » November 17th, 2011, 3:40 pm

Yeah sure! :)
Anything else you need just ask. ;)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 2 guests

cron