wpinv_status_{$new_status}

Fires after an invoice status has been changed from one status to another.

do_action( 'wpinv_status_' . $new_status, int $invoice_id, string $old_status );

$new_status refer to the new invoice status.

Parameters

$invoice_id

(int) The Invoice ID.

$old_status

(string) Invoice old status. Learn more

Examples

Handle event on invoice status has been changed to Paid(publish).