gform_payment_amount

gform_payment_amount

DescriptionUsageParametersExamplesPlacementSource Code

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.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注