gform_post_form_restored

Description

The “gform_post_form_restored” action in Gravity Forms is triggered after a form is restored from the trash, allowing further actions to be performed.

Usage

add_action( 'gform_post_form_restored', 'my_function', 10 );

Parameters

  • $form_id int

    The ID of the form being restored.

Examples

add_action( 'gform_post_form_restored', 'my_post_form_restored_func', 10);

function my_post_form_restored_func( $form_id ) {
    // perform action after a form has been restored
}

Source Code

This action hook is located in forms_model.php.