Re: How to run xprofile_sync_wp_profile() on registration
Data from the fullname field on the registration form is apparently stored in x-profile via this line:
// put the user profile meta in a session ready to store.
for ( $i = 0; $i < count($bp_xprofile_callback); $i++ ) {
$bp_user_signup_meta['field_' . $bp_xprofile_callback[$i]['field_id']] .= $bp_xprofile_callback[$i]['value'];
}
How can I put the value from the fullname field into a function that does the same thing as xprofile_sync_wp_profile()?
I’d have to replace the BP_XPROFILE_FULLNAME_FIELD_NAME line with “something”. The fullname field_id seems to be 1.
So something like this?:
$bp_user_signup_meta['field_' . $bp_xprofile_callback['1'] .= $bp_xprofile_callback['value'];
…?!