Skip to content
Docs
Get RestroPress

Filter

rpress_payment_completed_date

Updated
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#

ParameterTypeDescription
$completed_datestringThe completion date as stored.
$payment_idintID of the payment.
$paymentRPRESS_PaymentThe 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), in RPRESS_Payment::get_completed_date()
Was this page helpful?