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
- $payment_status string
The payment status for the entry.
-
$form Form Object
The form.
-
$entry Entry Object
The entry.
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.