Filter
rpress_payment_completed_date
On this page
Filters the completion date of a payment.
Applied when the completed_date property of an RPRESS_Payment is read. The filter runs on every read of the property, not only when the payment is loaded.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$completed_date | string | The completion date as stored. |
$payment_id | int | ID of the payment. |
$payment | RPRESS_Payment | The payment object. |
Return value#
string. The date to return.
Example#
function my_payment_completed_date( $completed_date, $payment_id, $payment ) {
return $completed_date;
}
add_filter( 'rpress_payment_completed_date', 'my_payment_completed_date', 10, 3 );
Source#
Applied in:
includes/payments/class-rpress-payment.php(line 2163), inRPRESS_Payment::get_completed_date()
Was this page helpful?
