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.






