WordPress at Your Fingertips
function is not described

WC_Coupon::set_usage_count() public WC 3.0.0

Set how many times this coupon has been used.

{} It's a method of the class: WC_Coupon{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_usage_count( $usage_count );
$usage_count(int) (required)
Usage count.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_usage_count() WC 5.7.1

public function set_usage_count( $usage_count ) {
	$this->set_prop( 'usage_count', absint( $usage_count ) );
}