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

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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