WC_Coupon::set_excluded_product_categories( array $excluded_product_categories )
Set the product category IDs this coupon cannot be used with.
Description Description
Parameters Parameters
- $excluded_product_categories
-
(Required) List of excluded product categories.
Source Source
File: includes/class-wc-coupon.php
public function set_excluded_product_categories( $excluded_product_categories ) { $this->set_prop( 'excluded_product_categories', array_filter( wp_parse_id_list( (array) $excluded_product_categories ) ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |