WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 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.

up vote 7 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

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