Take the 2-minute tour ×

I update user info using wp_update_user function. I also need to update the table wp_bp_xprofile_data. Is there any function, where I can update data on wp_bp_xprofile_data table?

share|improve this question

closed as off-topic by toscho Aug 2 at 20:53



1 Answer 1

up vote 4 down vote accepted

This is how I would update a field named 'Address':

function updateAddress() {

    global $current_user;

    $newAddress = '123 New Street';

    xprofile_set_field_data('Address', $current_user->id,  $newAddress);

share|improve this answer
