gform_payment_status

Description

Allows the payment status displayed for the entry in the Payment Details section to be modified.

Usage

add_filter( 'gform_payment_status', 'your_function_name', 10, 3 );

Parameters

Examples

add_filter( 'gform_payment_status', 'change_payment_status', 10, 3 );
function change_payment_status( $payment_status, $form, $entry ){
	if ( $payment_status == 'Processing' ){
		$payment_status = 'Testing';
	}
	return $payment_status;
}

Placement

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

Source Code

This filter is located in GFEntryDetail::meta_box_payment_details() in entry_detail.php.