Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › How’s the plugin verify First Time Purchase? › Reply To: How’s the plugin verify First Time Purchase?
May 6, 2022 at 7:19 am #18838
Soft79
Keymaster
A user is considered to having placed a status when an order reaches one of these statuses:
‘wc-completed’, ‘wc-processing’, ‘wc-on-hold’, ‘wc-pending’
Maybe you would like to ignore on-hold and/or pending statuses. You can do that with the following php snippet:
add_filter(
'wjecf_first_order_statuses_to_check',
function( $order_statuses ) {
return [ 'wc-completed', 'wc-processing' ];
}
);