WC_Coupon::set_limit_usage_to_x_items( int|null $limit_usage_to_x_items )

Set usage limit to x number of items.


Description Description


Parameters Parameters

$limit_usage_to_x_items

(Required) Limit usage to X items.


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function set_limit_usage_to_x_items( $limit_usage_to_x_items ) {
		$this->set_prop( 'limit_usage_to_x_items', is_null( $limit_usage_to_x_items ) ? null : absint( $limit_usage_to_x_items ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.