WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Coupon::increase_usage_count() public WC 1.0

Increase usage count for current coupon.

Это метод класса: WC_Coupon{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WC_Coupon = new WC_Coupon();
$WC_Coupon->increase_usage_count( $used_by, $order );
$used_by(строка)
Either user ID or billing email.
По умолчанию: ''
$order(WC_Order)
If provided, will clear the coupons held by this order.
По умолчанию: null

Код WC_Coupon::increase_usage_count() WC 4.5.2

woocommerce/includes/class-wc-coupon.php
<?php
public function increase_usage_count( $used_by = '', $order = null ) {
	if ( $this->get_id() && $this->data_store ) {
		$new_count = $this->data_store->increase_usage_count( $this, $used_by, $order );

		// Bypass set_prop and remove pending changes since the data store saves the count already.
		$this->data['usage_count'] = $new_count;
		if ( isset( $this->changes['usage_count'] ) ) {
			unset( $this->changes['usage_count'] );
		}
	}
}