bookmark_bordergform_forms_post_import

Description

Use this hook to perform actions after importing forms.

Usage

add_action( 'gform_forms_post_import', 'your_function_name' );

Parameters

  • $forms []

    An array of form objects.

Example

This example shows how you can use 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.

Source Code

do_action( 'gform_forms_post_import', $forms )

This action hook is located in GFExport::import_json() in export.php

Since

This hook was added in Gravity Forms 1.9.13.29.