I am importing a product list CSV from a wholesalers website and one of the categories for items is "Baseball Caps" - I have renamed this category to "Hats" but now every time i re-import the product list I have to go rename the category "Hats" back to "Baseball Caps" - run the import - then rename it back, otherwise it will create the new category and all the products to that one instead of the one I would like
Is there a function I could write in wpallimports function editor so that when category == "Baseball Caps" it saves it as "Hats" with slug "Hats" as well ?
thank you