gform_post_form_trashed

gform_post_form_trashed

DescriptionUsageParametersExamplesSource Code

Description
The 「gform_post_form_trashed」 action is triggered after a form is moved to trash in Gravity Forms, allowing further actions to be performed.
Usage
1add_action( 'gform_post_form_trashed', 'my_function', 10, 1 );

Parameters

$form_id int
The ID of the form being moved to trash.

Examples
12345add_action( 'gform_post_form_trashed', 'my_post_form_trashed_func', 10); function my_post_form_trashed_func( $form_id ) {  // perform action after a form has been moved to the trash}
Source Code
This action hook is located in forms_model.php.

发表回复

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