An event that is triggered when a category is deleted.
The onCategoryDeleted()
event handler runs when a category is deleted. The received CategoryDeleted
object contains event metadata.
Note: Backend events don't work when previewing your site.
function wixBlog_onCategoryDeleted(event: CategoryDeleted): void;
Information about the category that was deleted.
// Place this code in the events.js file
// of your site's Backend section.
// Add the file if it doesn't exist.
export function wixBlog_onCategoryDeleted(event) {
const categoryId = event.metadata.entityId;
const deletedCategoryTime = event.metadata.eventTime;
console.log("Category deleted", event);
}
/*
* {
* "metadata":{
* "id":"68dbe814-7280-44ef-a9dc-d32243ad3990",
* "entityId":"62ab47e67bb78adfe3e75199",
* "eventTime":"2022-06-16T15:14:15.762Z",
* "triggeredByAnonymizeRequest":false
* }
* }
*/
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
An event that is triggered when a category is updated.
The onCategoryUpdated()
event handler runs when a category is updated. The received CategoryUpdated
object contains information about the category that was updated.
Note: Backend events don't work when previewing your site.
Information about the category that was updated.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a draft post is created.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a draft post is deleted.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a draft post is updated.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.