gform_entry_pre_handle_confirmation

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

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.