Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Make 2+ part name in full name required + xprofile_sync_wp_profile()


peterverkooijen
Participant

@peterverkooijen

You’re right r-a-y. Tried it. It had no effect on Buddypress’ registration form.

Back to my previous attempt; I’m stuck at intercepting fullname input from the Buddypress registration form. Do you know how?

Based on code in another plugin I put together something based on ‘$input_data’:

function synchro_wp_usermeta($input_data) {
global $bp, $wpdb;

$post_data = array();
foreach ($input_data as $varname => $varvalue) {
$post_data[$varname] = $varvalue;
}

$fullname = $post_data[fullname];
...

But I don’t know if that $input_data is a standard wp tag or something else. Also the structure of the xprofile tables is very different from the structure of the regular wp users tables, so I’m not sure if that ‘$input_data as $varname => $varvalue’ is applicable.

Where is the code that processes data input from the Buddypress registration form? I’d like to use that as example, but have no clue where it is.

Skip to toolbar