WordPress at Your Fingertips
function is not described

WC_Legacy_Coupon::dcr_usage_count() public WC 1.0

Decrease usage count for current coupon.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Legacy_Coupon = new WC_Legacy_Coupon();
$WC_Legacy_Coupon->dcr_usage_count( $used_by );
$used_by(string)
Either user ID or billing email
Default: ''

Code of WC_Legacy_Coupon::dcr_usage_count() WC 5.6.0

public function dcr_usage_count( $used_by = '' ) {
	$this->decrease_usage_count( $used_by );
}