Change Xprofile Data


Update your Profile Field information for BuddyPress

xprofile_set_field_data( $field_name', $usert_id, $value);

This will not work for check boxes. Below is code that should help, check boxes need to be serialized data.

$value = maybe_serialize( [An Array of your values] );

 xprofile_set_field_data( $field_name, $user_set_id, $value);

Leave a Reply

Your email address will not be published. Required fields are marked *