woocommerce_decrease_coupon_usage_count

woocommerce_decrease_coupon_usage_count

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_decrease_coupon_usage_count') is found 1 times:

  • /includes/data-stores/class-wc-coupon-data-store-cpt.php line 410
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
                $this->refresh_coupon_data( $coupon );
            }
        }
     
        do_action( 'woocommerce_decrease_coupon_usage_count', $coupon, $new_count, $used_by );
     
        return $new_count;
    }
     
    /**
     * Increase or decrease the usage count for a coupon by 1.