BP profile data

<?php xprofile_set_field_data('City',$user_id,'LocoMoco'); //Change Simple Field ?>

<?php echo bp_profile_field_data( 'field=City' ); //Get Data ?>

<?php //Use for checkboxes and dropdowns - Have not tested this, xprofile_set_field_data seems to work to change value set in a dropdown
$value = maybe_serialize( [An Array of your values] );
xprofile_set_field_data( $field_name, $user_set_id, $value);
?>

0 Comments

You must be logged in to post a comment.