woocommerce_product_coupon_types хук-фильтр . WC 2.5.0
Coupon types that apply to individual products. Controls which validation rules will apply.
Использование
add_filter( 'woocommerce_product_coupon_types', 'filter_function_name_5946' ); function filter_function_name_5946( $array ){ // filter... return $array; }
- $array
- -
Список изменений
С версии 2.5.0 | Введена. |
Где вызывается хук
woocommerce_product_coupon_types
woocommerce/includes/wc-coupon-functions.php 47
return (array) apply_filters( 'woocommerce_product_coupon_types', array( 'fixed_product', 'percent' ) );