WC_Coupon::set_individual_use()
Set if this coupon can only be used once.
Method of the class: WC_Coupon{}
No Hooks.
Return
null
. Nothing (null).
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. |
WC_Coupon::set_individual_use() WC Coupon::set individual use code WC 9.4.2
public function set_individual_use( $is_individual_use ) { $this->set_prop( 'individual_use', (bool) $is_individual_use ); }