Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › First purchase only coupon issues
Hi,
I created First purchase only coupon but it’s not working on custom order statuses. I have added this filter but still now working.
add_filter( ‘woocommerce_order_is_paid_statuses’, ‘xxx_paid_is_paid_status’ );
function xxx_paid_is_paid_status( $statuses ) { $statuses[] = ‘wc-finalised’; return $statuses; }
Any workaround for this?
Nevermind, I found this
add_filter( ‘wjecf_first_order_statuses_to_check’, function( $order_statuses ) { return array_merge( $order_statuses, [ ‘wc-finalised’] ); }, 10, 1 );
Great!