Page 1 of 1

Retrieve Members Data?

PostPosted: April 5th, 2011, 3:49 am
by leeh14
Hi,

Well basically once a user logs in I want to set some varibles with information of the account, mainly there username and membership type, is there a built in way to do this? or even a manual way?

Re: Retrieve Members Data?

PostPosted: April 5th, 2011, 12:22 pm
by Cristián Lávaque
Hi. :)

When you have the person create the account, the username is a given, and a membership level will be assigned by default at 0 when free, or higher with payed ones you sell.

You can go to their profiles and edit that information manually WP Admin -> Users.

Re: Retrieve Members Data?

PostPosted: April 5th, 2011, 12:57 pm
by leeh14
Hi,

Cheers, Thats cool but what I actually meant was is there a way that once a user has logged in that I can display this information to them. And also have the username and membership type stored as a variable so I can post that information of to a database or sum-thing?

Re: Retrieve Members Data?

PostPosted: April 5th, 2011, 1:45 pm
by Cristián Lávaque
Ah ok, sorry I didn't get that the first time.

Sure, you can do that too. I suggest you take a look at these:

WP Admin -> s2Member -> API / Scripting -> s2Member PHP/API Constants
WP Admin -> s2Member -> API / Scripting -> s2Member API / WP Hooks & Filters


Let me know if that answers your question or if you need help with anything else. :)