Action
rpress_post_refund_payment
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#
| Parameter | Type | Description |
|---|---|---|
$payment | RPRESS_Payment | The 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), inRPRESS_Payment::process_refund()
See also#
Was this page helpful?
