Forums
Home / Plugin: Import any XML, CSV or Excel File to WordPress / Update excluding categories
(@goncalonunogarcia)
5 months, 1 week ago
Hi. How can i make the import not update products from a specific category on the site. The file does not have the category field.
The page I need help with: [log in to see the link]
(@wpallimport)
Hi @goncalonunogarcia,
How can i make the import not update products from a specific category on the site. The file does not have the category field.
Since the file doesn’t have the category listed for the products, you’d have to write custom code that stops the update via the wp_all_import_is_post_to_update hook: https://www.wpallimport.com/documentation/action-reference/#wp_all_import_is_post_to_update. You can search for “wp_all_import_is_post_to_update” at https://www.wpallimport.com/documentation/code-snippets/ to see examples using this hook.