Skip to content
Docs
Get RestroPress

Action

rpress_post_refund_payment

Updated
On this page

Fires after a refunded payment's stats have been adjusted.

Runs at the end of RPRESS_Payment::process_refund, after the sale logs were deleted and the cached monthly earnings were cleared.

Parameters#

ParameterTypeDescription
$paymentRPRESS_PaymentThe refunded payment.

Example#

function my_after_refund( $payment ) {
	delete_transient( 'my_refund_report' );
}
add_action( 'rpress_post_refund_payment', 'my_after_refund' );

Source#

Fired from:

  • includes/payments/class-rpress-payment.php (line 1662), in RPRESS_Payment::process_refund()

See also#

Was this page helpful?