WC_Coupon::set_usage_count( int $usage_count )

Set how many times this coupon has been used.


Description Description


Parameters Parameters

$usage_count

(Required) Usage count.


Top ↑

Source Source

File: includes/class-wc-coupon.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.