xprofile_data_before_delete
Fires before the current profile data instance gets deleted.
Description
Parameters (1)
- 0. $array (array) =>
array( $this )
- Current instance of the profile data being deleted.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'xprofile_data_before_delete', $array );
- The following example is for adding a hook callback.
- // define the xprofile_data_before_delete callback
- function action_xprofile_data_before_delete( $array ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'xprofile_data_before_delete', 'action_xprofile_data_before_delete', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'xprofile_data_before_delete', 'action_xprofile_data_before_delete', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /bp-xprofile/classes/class-bp-xprofile-profiledata.php
- do_action_ref_array( 'xprofile_data_before_delete', array( $this ) );