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™

Use Custom Reg Fields in Code (But Not Just For Current User

s2Member Plugin. A Membership plugin for WordPress®.

Use Custom Reg Fields in Code (But Not Just For Current User

Postby klock » January 4th, 2011, 2:50 pm

Hi..

I customized the "new user" email that WP sends out to the admin...

I would like to add to it a custom registration field that I created... is there a function that I can pass a user ID to that will return a custom reg field?

Thanks!
Keith
User avatar
klock
Registered User
Registered User
 
Posts: 7
Joined: December 31, 2010

Re: Use Custom Reg Fields in Code (But Not Just For Current

Postby klock » January 4th, 2011, 5:39 pm

Never mind.. figured it out...

Did this...

$get_custom_field = get_user_option ("s2member_custom_fields", $user_id);
$get_custom_field = $get_custom_field[custom_field_name];
User avatar
klock
Registered User
Registered User
 
Posts: 7
Joined: December 31, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot] and 4 guests

cron