onCategoryUpdated( )


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.

Method Declaration
Copy
Method Parameters
eventCategoryUpdated

Information about the category that was updated.

An event that occurs when a category is updated
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onDraftCreated( )


Developer Preview

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.

Method Declaration
Copy
function wixBlog_onDraftCreated(event: DraftCreated): void;
Method Parameters
eventDraftCreated
onDraftCreated example
JavaScript
export function wixBlog_onDraftCreated(event) { const eventId = event.metadata.id; const entityId = event.entity._id; }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onDraftDeleted( )


Developer Preview

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.

Method Declaration
Copy
Method Parameters
eventDraftDeleted
onDraftDeleted example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

onDraftUpdated( )


Developer Preview

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.

Method Declaration
Copy
Method Parameters
eventDraftUpdated
onDraftUpdated example
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?