gform_post_update_entry

gform_post_update_entry

DescriptionUsageParametersExampleSource Code

Description
This hook fires after the entry has been updated via GFAPI::update_entry().
Usage
The following would run for any form:
1add_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)
1add_action( 'gform_post_update_entry_10', 'your_function_name', 10, 2 );

Parameters

$entry Entry Object
The entry after being updated.

$original_entry Entry Object
The entry before being updated.

Example
12345add_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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注