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™

Retrieve Members Data?

s2Member Plugin. A Membership plugin for WordPress®.

Retrieve Members Data?

Postby leeh14 » April 5th, 2011, 3:49 am

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?
User avatar
leeh14
Registered User
Registered User
 
Posts: 8
Joined: April 5, 2011

Re: Retrieve Members Data?

Postby Cristián Lávaque » April 5th, 2011, 12:22 pm

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.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Retrieve Members Data?

Postby leeh14 » April 5th, 2011, 12:57 pm

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?
User avatar
leeh14
Registered User
Registered User
 
Posts: 8
Joined: April 5, 2011

Re: Retrieve Members Data?

Postby Cristián Lávaque » April 5th, 2011, 1:45 pm

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. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 3 guests

cron