Description
Allows the payment date displayed for the entry in the Payment Details section to be modified.
Usage
add_filter( 'gform_payment_date', 'your_function_name', 10, 3 );
Parameters
- $payment_date string
The payment date for the entry.
-
$form Form Object
The form.
-
$entry Entry Object
The entry.
Examples
add_filter( 'gform_payment_date', 'change_payment_date', 10, 3 ); function change_payment_date( $payment_date, $form, $entry ){ //change date format to year/day/month $payment_date = GFCommon::format_date( $payment_date, false, 'Y/d/m', $entry['transaction_type'] != 2 ); return $payment_date; }
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.