Disable hooks when importing CSV/XLS
AnsweredIs it possible to stop hooks from firing when importing from excel?
An import can contain 1000's of items, and I seem to be unable to stop the hooks. I can disable the hooks but that would stop our normal functioning of the script which we do not want.
-
Hi Riël,
We don't have a way to not fire webhooks when items are created as a part of an import. You can either remove your webhooks while the import is running or you can see if the "created_via" property on the item doesn't contain some form on information you might be able to use to exclude those items. I can't remember off the top of my head if it's set to something specific for imported items.
All the best,
Andreas
Please sign in to leave a comment.
Comments
1 comment