xprofile_profile_field_data_updated

Fires on each iteration of an XProfile field being saved with no error.

Description

do_action( 'xprofile_profile_field_data_updated', (int) $field_id, (string) $value ); 

Parameters (2)

0. $field_id (int)
ID of the field being updated.
1. $value (string)
Value that was saved to the field.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'xprofile_profile_field_data_updated', $field_id, $value ); 
The following example is for adding a hook callback.
  1. // define the xprofile_profile_field_data_updated callback 
  2. function action_xprofile_profile_field_data_updated( $field_id, $value ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'xprofile_profile_field_data_updated', 'action_xprofile_profile_field_data_updated', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'xprofile_profile_field_data_updated', 'action_xprofile_profile_field_data_updated', 10, 2 ); 

Defined (2)

The action is defined in the following location(s).

/bp-xprofile/classes/class-bp-xprofile-user-admin.php  
  1. do_action( 'xprofile_profile_field_data_updated', $field_id, $value ); 
/bp-xprofile/bp-xprofile-screens.php  
  1. do_action( 'xprofile_profile_field_data_updated', $field_id, $value );