gform_userregistration_delete_signup

gform_userregistration_delete_signup

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The action gform_userregistration_delete_signup allows custom actions to be performed when pending activations are deleted.
Usage
1add_action( 'gform_userregistration_delete_signup', 'your_function_name' );

Parameters

$signup object
Object of signup information

Examples
12345678add_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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注