Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 4 down vote accepted

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

function updateAddress() {

    global $current_user;
    get_currentuserinfo();

    $newAddress = '123 New Street';

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

}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.