We are currently on vacation until 21st July 2025, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

Don’t import products if it contains the sensitive words

Closed

Import WP Addon - WooCommerce Updated 1 year ago 1 Reply

Dung asked 1 year ago on April 22, 2024 at 8:57 am

I want the importer NOT import products that have a word/words (sensitive) in their titles (here, in my case, is pharmacy products).

Example, if I don’t want the importer to import the products which have “internet security” in title, how can I do that ?

PS. I tried to find codes to hide Woo products which have sensitive words in its title, however, it is unsuccessful. So I think about working on importers to get rid of these products.

J

James replied Support Agent

1 year ago on April 22, 2024 at 8:11 pm

Hi,

You could use the filters section of the importer to skip importing a record that contains a specific  text: https://www.importwp.com/docs/how-to-filter-records-before-importing/

For complex filtering you can write custom filters: https://www.importwp.com/docs/how-to-filter-records-before-importing/#filter-rows-using-custom-code

James