Description
The action gform_userregistration_delete_signup allows custom actions to be performed when pending activations are deleted.
Usage
add_action( 'gform_userregistration_delete_signup', 'your_function_name' );
Parameters
- $signup object
Object of signup information
Examples
add_action( 'gform_userregistration_delete_signup', 'save_data_in_delete_table' ); function save_data_in_delete_table ( $signup ){ //save data into a deletion table if not admin signup if ( $signup->user_login != 'admin' ){ //insert into table } }
Placement
This code should be placed in the functions.php file of your active theme.
Since
This action was added in User Registration version 3.0.
Source Code
This action is located in GFUserSignups::delete_signup() in includes/signups.php.