gform_post_update_entry

Description

This hook fires after the entry has been updated via GFAPI::update_entry().

Usage

The following would run for any form:

add_action( 'gform_post_update_entry', 'your_function_name', 10, 2 );

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

add_action( 'gform_post_update_entry_10', 'your_function_name', 10, 2 );

Parameters

Example

add_action( 'gform_post_update_entry', 'log_post_update_entry', 10, 2 );
function log_post_update_entry( $entry, $original_entry ) {
GFCommon::log_debug( 'gform_post_update_entry: original_entry => ' . print_r( $original_entry, 1 ) );
GFCommon::log_debug( 'gform_post_update_entry: updated entry => ' . print_r( $entry, 1 ) );
}

Source Code

This filter is located in GFAPI::update_entry() in includes/api.php.