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
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.