bookmark_bordergform_after_duplicate_form

Description

Runs after a form is duplicated, and provides the IDs.

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