I want to automatically add products to a category if their name contains the category (for example the product name is: Awesome brand baseball bat, the product should automatically be added to the category baseball bat). Is there a plugin that can automatically do this or even better: is it possible to add a rule to WP All Import to do this?
Setting the category like
$product->set_category_ids([ 300, 400 ] );
shouldn't be the problem, but how can I compare the articles names with all my categories so I can automatically add the products to them?