wpinv_post_refund_invoice
Fires after an invoice amount has been refunded.
do_action( 'wpinv_post_refund_invoice', WPInv_Invoice $invoice );
Parameters
- $invoice
-
(object) The WPInv_Invoice object.
Examples
Simple example to handle refund of invoice amount.
function _wpi_wpinv_post_refund_invoice( $invoice ) { // Invoice items $cart_items = $invoice->get_cart_details(); // Refunded amount $refunded_amount = $invoice->get_total(); // Do your stuff here } add_action( 'wpinv_post_refund_invoice', '_wpi_wpinv_post_refund_invoice', 10, 1 );