gform_post_form_views_deleted

gform_post_form_views_deleted

DescriptionUsageParametersExamplesSource Code

Description
The 「gform_post_form_views_deleted」 action is triggered when a form view count has been reset to zero, allowing further actions to be performed.
Usage
1add_action( 'gform_post_form_views_deleted', 'my_function', 10, 1 );

Parameters

$form_id int
The ID of the form that the view count is being reset on.

Examples
1234add_action( 'gform_post_form_views_deleted', 'my_function', 10, 1 );function my_function( $form_id ) {  // perform action after the form view count has been reset to zero}
Source Code
This action hook is located in forms_model.php.

发表回复

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