I am looking for a hook that would allow me to bypass certain orders from being sent to Xero. Specifically, I have child orders, which I have created to provide a more robust order fulfilment system. These orders go through the same order status steps, so unless I can check an order (to see if it is a child), I cannot prevent it from being sent to Xero.
Ultimately, it would be great to have a filter in WC_XR_Invoice_Manager->maybe_queue_invoice() and WC_XR_Payment_Manager->maybe_queue_send_payment() which would allow developers to check the order before sending it to Xero.
I am happy to write this code if you would consider including it in your next release.
Open
Last updated: October 18, 2023
0 comments
Log in to comment on this feature request.