woocommerce_decrease_coupon_usage_count
Использование
add_action( 'woocommerce_decrease_coupon_usage_count', 'wp_kama_woocommerce_decrease_coupon_usage_count_action', 10, 3 ); /** * Function for `woocommerce_decrease_coupon_usage_count` action-hook. * * @param $coupon * @param $new_count * @param $used_by * * @return void */ function wp_kama_woocommerce_decrease_coupon_usage_count_action( $coupon, $new_count, $used_by ){ // action... }
- $coupon
- -
- $new_count
- -
- $used_by
- -
Где вызывается хук
woocommerce_decrease_coupon_usage_count
woocommerce/includes/data-stores/class-wc-coupon-data-store-cpt.php 410
do_action( 'woocommerce_decrease_coupon_usage_count', $coupon, $new_count, $used_by );