Description
Allows the payment amount displayed for the entry in the Payment Details section to be modified.
Usage
add_filter( 'gform_payment_amount', 'your_function_name', 10, 3 );
Parameters
- $payment_amount string
The payment amount for the entry.
-
$form Form Object
The form.
-
$entry Entry Object
The entry.
Examples
add_filter( 'gform_payment_amount', 'change_payment_amount', 10, 3 ); function change_payment_amount( $payment_amount, $form, $entry ){ return 'USD ' . $payment_amount; }
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.