WC_Coupon::set_excluded_product_ids( array $excluded_product_ids )

Set the product IDs this coupon cannot be used with.


Description Description


Parameters Parameters

$excluded_product_ids

(Required) Exclude product IDs.


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function set_excluded_product_ids( $excluded_product_ids ) {
		$this->set_prop( 'excluded_product_ids', array_filter( wp_parse_id_list( (array) $excluded_product_ids ) ) );
	}

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.