gform_post_form_deactivated

gform_post_form_deactivated

DescriptionUsageParametersExamplesSource Code

Description
The 「gform_post_form_deactivated」 action in Gravity Forms is triggered after an active form is marked as inactive, allowing further actions to be performed.
Usage
add_action( 'gform_post_form_deactivated', 'my_function', 10, 1 );

Parameters

$form_id int
The ID of the form that is being marked as inactive.

Examples
add_action( 'gform_post_form_deactivated', 'my_post_form_deactivated_func', 10);

function my_post_form_deactivated_func( $form_id ) {
// perform action after a form has been deactivated
}

Source Code
This action hook is located in forms_model.php.

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註