gform_after_duplicate_form

gform_after_duplicate_form

DescriptionUsageParametersExamplesSource Code

Note: This hook has been deprecated and the hook gform_post_form_duplicated should be used instead.
Description
The 「gform_after_duplicate_form」 action in Gravity Forms is triggered after a form is duplicated, allowing further actions to be performed. The hook provides the ID of the form duplicated and the ID of the new form created.
Usage
add_action( 'gform_after_duplicate_form', 'my_function', 10, 2 );

Parameters

$form_id string
ID of the form being duplicated.

new_id string
ID of the new copy of the form.

Examples
function my_function($form_id, $new_id) {
echo 'Form ' . $form_id . ' was copied into ' . $new_id;
}
add_action( 'gform_after_duplicate_form', 'my_function', 10, 2 );

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

发表回复

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