Page 1 of 1

API to update Custom Registration/Profile Fields

PostPosted: December 7th, 2011, 4:06 pm
by DaveWP196
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.

Re: API to update Custom Registration/Profile Fields

PostPosted: December 7th, 2011, 4:13 pm
by Bruce C
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.

Re: API to update Custom Registration/Profile Fields

PostPosted: December 7th, 2011, 4:34 pm
by DaveWP196
Thanks...