xprofile_profile_field_data_updated

  • do_action( 'xprofile_profile_field_data_updated', $field_id, $value )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-screens.php :: Trac Source Line: 104
      				// Certain types of fields (checkboxes, multiselects) may come through empty. Save them as an empty array so that they don't get overwritten by the default on the next edit.
      				if ( empty( $_POST['field_' . $field_id] ) )
      					$value = array();
      				else
      					$value = $_POST['field_' . $field_id];
      
      				if ( !xprofile_set_field_data( $field_id, $bp->displayed_user->id, $value, $is_required[$field_id] ) )
      					$errors = true;
      				else
      					do_action( 'xprofile_profile_field_data_updated', $field_id, $value );
      			}
      
      			do_action( 'xprofile_updated_profile', $bp->displayed_user->id, $posted_field_ids, $errors );
      
      			// Set the feedback messages
      			if ( $errors )
      				bp_core_add_message( __( 'There was a problem updating some of your profile information, please try again.', 'buddypress' ), 'error' );
      			else
      				bp_core_add_message( __( 'Changes saved.', 'buddypress' ) );
      

Comments are closed.