gform_payment_status

Description

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

Usage

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

Parameters

Examples

1
2
3
4
5
6
7
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.