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™

API to update Custom Registration/Profile Fields

s2Member Plugin. A Membership plugin for WordPress®.

API to update Custom Registration/Profile Fields

Postby DaveWP196 » December 7th, 2011, 4:06 pm

Hi

Is there an php API which allows Custom Registration/Profile fields to be updated?

I have tried to use the standard wp_update_user(), but passing value pairs as an array in '[wp prefix]s2member_custom_fields' has no effect.

My problem is that I want to bulk down in membership information which includes information held as s2member_custom_fields. i.e. For individual members I want to exploit the standard [s2Member-Profile /] shortcode for individual member editing.
User avatar
DaveWP196
Registered User
Registered User
 
Posts: 5
Joined: November 23, 2011

Re: API to update Custom Registration/Profile Fields

Postby Bruce C » December 7th, 2011, 4:13 pm

If you have access to your mySQL database entries, you can look up the values in the [suffix]usermeta table, and use the wordpress update_user_meta() function to update the values dynamically.
~Bruce ( a.k.a. Ace )

If you're interested in a Professional Installation, or Custom Coding Job, you can send your request here.

Proud Supporter of:
The Zeitgeist Movement
and Occupy Everything
User avatar
Bruce C
Experienced User
Experienced User
 
Posts: 337
Joined: July 20, 2011

Re: API to update Custom Registration/Profile Fields

Postby DaveWP196 » December 7th, 2011, 4:34 pm

Thanks...
User avatar
DaveWP196
Registered User
Registered User
 
Posts: 5
Joined: November 23, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest

cron