WC_Coupon::set_usage_limit_per_user() public WC 3.0.0
Set the amount of times this coupon can be used per user.
{} Это метод класса: WC_Coupon{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_usage_limit_per_user( $usage_limit );
- $usage_limit(число) (обязательный)
- Usage limit.
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Coupon::set_usage_limit_per_user() WC Coupon::set usage limit per user WC 5.0.0
public function set_usage_limit_per_user( $usage_limit ) {
$this->set_prop( 'usage_limit_per_user', absint( $usage_limit ) );
}