woocommerce_product_coupon_types filter-hook . WC 2.5.0
Coupon types that apply to individual products. Controls which validation rules will apply.
Usage
add_filter( 'woocommerce_product_coupon_types', 'filter_function_name_2246' ); function filter_function_name_2246( $array ){ // filter... return $array; }
- $array
- -
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
woocommerce_product_coupon_types
woocommerce/includes/wc-coupon-functions.php 47
return (array) apply_filters( 'woocommerce_product_coupon_types', array( 'fixed_product', 'percent' ) );