WC_Coupon::set_usage_limit_per_user()
Set the amount of times this coupon can be used per user.
Method of the class: WC_Coupon{}
No Hooks.
Return
null
. Nothing (null).
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. |
WC_Coupon::set_usage_limit_per_user() WC Coupon::set usage limit per user code WC 9.4.2
public function set_usage_limit_per_user( $usage_limit ) { $this->set_prop( 'usage_limit_per_user', absint( $usage_limit ) ); }