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?

  • 1
    Stupid that buddy press questions are closed as off topic. Google brought me here, and it provided the answer I needed. This is exactly what Stack Exchange sites are for, and if questions about one of the most popular WordPress plugins can't be asked in WordPress Dev, where is it supposed to be asked? – lwitzel Mar 1 '16 at 0:12
  • I had not noticed that they closed this thread as off-topic. Strange! But fortunately by that time the answer has been already answered. – Debiprasad Mar 2 '16 at 5:35
  • All third party plugins are off-topic. – Debiprasad Mar 2 '16 at 5:40

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);


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