WordPress at Your Fingertips
function is not described

WC_Coupon::set_exclude_sale_items() public WC 3.0.0

Set if this coupon should excluded sale items or not.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Coupon = new WC_Coupon();
$WC_Coupon->set_exclude_sale_items( $exclude_sale_items );
$exclude_sale_items(true|false) (required)
If should exclude sale items.

Changelog

Since 3.0.0 Introduced.

Code of WC_Coupon::set_exclude_sale_items() WC 5.7.1

public function set_exclude_sale_items( $exclude_sale_items ) {
	$this->set_prop( 'exclude_sale_items', (bool) $exclude_sale_items );
}