Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(esp-sync): get inactive subscriptions with failed or pending orde…
…rs (#3658) * fix(esp-sync): get inactive subscriptions with failed or pending orders * fix: still only consider subscriptions that have at least one completed order * refactor: pass a flat array for array_filter * fix: on hold should add ex prefix to sync status * refactor: break after finding any completed order * perf: use WC_Subscription::get_payment_count() instead of fetching orders * perf: just use wc_get_order() --------- Co-authored-by: Leo Germani <[email protected]>
- Loading branch information