Repository › Forums › Support › WooCommerce Extended Coupon Features PRO › Filter Coupons by Product Tags › Reply To: Filter Coupons by Product Tags
August 30, 2018 at 7:24 am
#3721
Soft79
Keymaster
You can use the following filter:
add_filter( 'woocommerce_coupon_is_valid_for_product',
function ( $valid, $product, $coupon, $values )
{
//Make $valid true or false depending on the conditions...
return $valid;
}, 10, 4 );
And program accordingly.