WordPress at Your Fingertips
function is not described

WC_Coupon::set_usage_limit_per_user() public WC 3.0.0

Set the amount of times this coupon can be used per user.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_usage_limit_per_user( $usage_limit );
$usage_limit(int) (required)
Usage limit.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_usage_limit_per_user() WC 5.7.1

public function set_usage_limit_per_user( $usage_limit ) {
	$this->set_prop( 'usage_limit_per_user', absint( $usage_limit ) );
}