Note for app developers: Wix Data APIs require the site's code editor to be enabled. If you are building a Wix app, add a data collections extension to automatically enable the code editor and create data collections when your app is installed on a site.
The Background Tasks API allows you to create and manage tasks that process data items. Tasks run in the background, so they don't block the user's ability to work on their site while items are processed.
Each task has a different type, which determines the kind of processing the task performs on the items of the specified collection. You can create tasks to:
It's important to note the following before starting to code:
UPDATE_PUBLISH_STATUS, the collection must have the Publish plugin to control item visibility.