Description
Use this hook to perform actions after importing forms.
Usage
add_action( 'gform_forms_post_import', 'your_function_name' );
Parameters
- $forms Form Object
An array of form objects.
Example
This example shows how you can display a message after importing forms.
add_action( 'gform_forms_post_import', 'my_action_gform_forms_post_import' ); function my_action_gform_forms_post_import( $forms ) { GFCommon::add_message( 'Change the sample values' ); }
Placement
This code should be placed in the functions.php file of your active theme.
Since
This hook was added in Gravity Forms 1.9.13.29.
Source Code
do_action( 'gform_forms_post_import', $forms )
This action hook is located in GFExport::import_json() in export.php.