Category Children Coupons for WooCommerce provides a complete replacement for WooCommerce's built-in coupon category restrictions with additional flexibility:
Include children mode: Select a parent category and all its subcategories are automatically included. With WooCommerce's default restrictions, selecting "Clothing" only matches products directly in that category - not products in "T-Shirts" or "Trousers" subcategories. This plugin includes the entire category tree.
Exclude children mode: Match only the specific categories you select, without including subcategories. This mirrors WooCommerce's built-in behavior but is managed within this plugin's unified interface.
Future-proof coupons: The plugin stores your category selection and dynamically expands child categories at validation time - new subcategories are automatically included (or excluded) without editing existing coupons.
Features
- Four category restriction fields for complete control:
- Product categories (incl. children) - allowed categories with all descendants
- Exclude categories (incl. children) - blocked categories with all descendants
- Product categories (excl. children) - allowed categories only, no descendants
- Exclude categories (excl. children) - blocked categories only, no descendants
- Automatic subcategory handling based on your preference
- Works alongside WooCommerce's other (non-category coupon) restrictions
- Customizable error messages via filter
- AutomateWoo compatibility - category restrictions are copied when generating coupons from templates
How It Works
When you select a category in an "(incl. children)" field, the plugin automatically includes all subcategories during validation. When you use an "(excl. children)" field, only the exact categories you select are matched. Selected categories with children included are validated at usage time, so the current children are automatically used, even if they have changed since the coupon was set up.
1.4.1 - 21st January 2026
- Add GitHub Action for wp.org plugin directory release
1.4.0 - 18th January 2026
- Added "Product categories (excl. children)" and "Exclude categories (excl. children)" fields - match only exact categories without including subcategories.
- Plugin now provides a complete replacement for WooCommerce's built-in category restrictions with both "incl. children" and "excl. children" options.
1.3.0 - 16th January 2026
- Plugin renamed from runthings-wc-coupons-category-children to runthings-category-children-coupons to comply with WordPress.org trademark guidelines.
- Automatic migration of existing coupon settings to new meta key format on update.
- Changed filter hook from runthings_wc_coupons_category_children_error_message to runthings_category_children_coupons_error_message.
1.2.0 - 15th January 2026
- Added warning notice when conflicting WooCommerce category fields are set alongside plugin restrictions.
- Fixed custom error messages not displaying for percentage and fixed product discount coupons.
1.1.0 - 12th January 2026
- Add compatibility with AutomateWoo coupon generation to clone custom meta fields
1.0.2 - 6th January 2026
- Fixed missing "And" separator in the coupon usage restriction panel to match WooCommerce core styling.
1.0.1 - 4th January 2026
- Fixed fatal error when validating coupons in order context (WC_Order_Item_Product vs array type).
1.0.0 - 19th December 2025
- Initial release.
- Allowed categories with automatic child inclusion.
- Excluded categories with automatic child inclusion.
- Filter
runthings_category_children_coupons_error_message for custom error messages.