WordPress at Your Fingertips
function is not described

WC_Coupon::set_individual_use() public WC 3.0.0

Set if this coupon can only be used once.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_individual_use( $is_individual_use );
$is_individual_use(true|false) (required)
If is for individual use.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_individual_use() WC 5.6.0

public function set_individual_use( $is_individual_use ) {
	$this->set_prop( 'individual_use', (bool) $is_individual_use );
}