描述
This plugin helps you save hours of manual work when importing large batches of products that do not have any categories assigned. It allows you to define keyword-based rules per category and apply them in bulk to selected products.
Key Features:
– Create flexible keyword rules per category.
– Supports “OR” logic by default and “AND” logic via special syntax.
– Exclude products via “Not Contains” keywords.
– Bulk-apply rules to selected products in the Products list.
– Import and export rules as JSON files for backup and transfer.
How It Works
1. Create and Save Rules
1.1. Go to WooCommerce > Keyword Category Rules.
1.2. For each existing category, enter:
– Contains: keywords separated by commas (example: shoes, sneakers).
– Not Contains: keywords that should exclude a product (example: damaged, used).
1.3. To require multiple words to appear together, use "AND" (with “”) between them:
– Example: shoes "AND" leather matches titles containing both “shoes” and “leather”.
1.4. Save your rules.
2. Apply Rules to Products
2.1. In the WooCommerce Products (All products) list, select the products you want to process.
2.2. In the Bulk Actions menu, choose Apply Keyword-Based Category Rules, then click Apply.
2.3. The plugin will evaluate all selected products, assign matching categories, and show a success notice.
Limitations:
– This plugin does not automatically assign categories to new products when they are created or imported. The assignment must be triggered manually via Bulk Actions.
– The matching is performed against the product title only.
– Currently, the plugin works in one direction only: it adds categories to products based on matching keyword rules, but it does not remove any previously assigned categories when the keywords are removed or changed. This means: If you remove a keyword from a rule or replace it with a different one, the plugin will not remove previously applied category assignments from affected products. Once a rule has been applied, its effects remain in place unless manually adjusted via the product edit screen or other third-party tools.
License
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
螢幕截圖

Managing category keywords under WooCommerce > Category Auto Rules. This is where you define relevant keywords for each existing product category. Rules support both inclusion and exclusion criteria, based on product titles.

Selecting the products to be processed (e.g. uncategorized products or items that should receive additional categories) in the product list. The defined rules can then be applied via the Bulk Actions dropdown menu.
安裝
- Upload the plugin folder to
/wp-content/plugins/or install via the WordPress Plugin Installer. - Activate the plugin.
- Go to WooCommerce > Keyword Category Rules to configure and save your keyword rules.
- Apply rules to selected products on Products (All products) page
常見問題
-
How are keywords evaluated?
-
- All keywords in Contains are evaluated with OR logic.
- You can enforce AND logic by separating words with
"AND".- Example:
red "AND" shoesmatches only if both “red” and “shoes” are in the title.
- Example:
-
What happens if a product matches multiple categories?
-
- All matching categories will be assigned simultaneously.
-
Can I undo an assignment?
-
- No automatic undo is provided. You can manually remove categories from products in the WooCommerce Product Edit screen.
評價
There are no reviews for this plugin.
貢獻者及開發者
修改日誌
1.0
- Initial release.