gform_entry_pre_handle_confirmation

gform_entry_pre_handle_confirmation

DescriptionUsageParametersExamplePlacementSinceSource Code

Description
Allows the entry to be modified before the confirmation is processed.
Usage
add_filter( 'gform_entry_pre_handle_confirmation', 'your_function_name', 10, 2 );

Parameters

$entry Entry Object
The current entry.

$form Form Object
The current form.

Example
add_filter( 'gform_entry_pre_handle_confirmation', 'change_entry', 10, 2 );
function change_entry( $entry, $form ){
if ( rgar( $entry, '1.3' ) == 'Rocketgenius' || rgar( $entry, '1.6' ) == 'Rocketgenius') {
$entry['2'] = '[email protected]';
}
return $entry;
}

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 2.3.4.2.
Source Code
This filter is located in GFFormDisplay::handle_submission() in form_display.php.

发表回复

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