woocommerce_coupon_is_valid filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_coupon_is_valid', 'filter_function_name_3883', 10, 3 ); function filter_function_name_3883( $true, $coupon, $that ){ // filter... return $true; }
- $true
- -
- $coupon
- -
- $that
- -
Where the hook is called
woocommerce_coupon_is_valid
woocommerce/includes/class-wc-discounts.php 998
if ( ! apply_filters( 'woocommerce_coupon_is_valid', true, $coupon, $this ) ) {