gform_post_update_form_meta

Description

Fires after form meta has been updated for any form.

Usage

The following would apply to all forms:

add_action( 'gform_post_update_form_meta', 'your_function_name', 10, 3 );

To target a specific form, append the form id to the hook name. (format: gform_post_update_form_meta_FORMID):

add_action( 'gform_post_update_form_meta_1', 'your_function_name', 10, 3 );

Parameters

  • $form_meta Form Object

    The current form data.

  • $form_id int

    The form id.

  • $meta_name string

    The name of the meta updated.

Examples

add_action( 'gform_post_update_form_meta', 'update_data', 10, 3 );
function update_data( $form_meta, $form_id, $meta_name ){
	GFCommon::send_email( 'test@rocketgenius.com', 'test@rocketgenius.com','','','Form ' . $form_id, 'Form Updated at ' . date('Y-m-d H:i:s' ) );
}

Placement

This code should be placed in the functions.php file of your active theme.

Since

This filter was added in Gravity Forms version 1.9.

Source Code

This filter is located in GFFormsModel::update_form_meta() in forms_model.php.