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
Method Parameters
eventDraftCreated
onDraftCreated 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?

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?

onPostCreated( )


An event that is triggered when a post is created.

The onPostCreated() event handler runs when a post is created. The PostCreated object contains information about the post that was created.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostCreated

Information about the post that was created.

An event that occurs when a blog post is created
JavaScript
Errors

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

Did this help?

onPostDeleted( )


An event that is triggered when a post is deleted.

The onPostDeleted() event handler runs when a post is deleted. The received PostDeleted object contains event metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostDeleted

Information about the post that was deleted.

An event that occurs when a blog post is deleted
JavaScript
Errors

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

Did this help?

onPostLiked( )


An event that is triggered when a post is liked.

The onPostLiked() event handler runs when a post is liked. The received PostLikedEvent object contains data about the liked post including the postId, and the memberId or anonymousVisitorId.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostLikedEvent

Information about the post that was liked.

An event that occurs when a blog post is liked
JavaScript
Errors

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

Did this help?

onPostUnliked( )


An event that is triggered when a post is unliked.

The onPostUnliked() event handler runs when a post is unliked. The received PostUnlikedEvent object contains the postId of the unliked post.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostUnlikedEvent

Information about the unliked post.

An event that occurs when a post is unliked
JavaScript
Errors

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

Did this help?

onPostUpdated( )


An event that triggers when a post is updated.

The onPostUpdated() event handler runs when a post is updated. The received PostUpdated object contains information about the post that was updated.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostUpdated

Information about the post that was updated.

An event that occurs when a post 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?

onTagCreated( )


An event that is triggered when a tag is created.

The onTagCreated() event handler runs when a tag is created. The received TagCreated object contains information about the tag that was created.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventTagCreated

Information about the tag that was created.

An event that occurs when a tag is created
JavaScript
Errors

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

Did this help?

onTagDeleted( )


An event that is triggered when a tag is deleted.

The onTagDeleted() event handler runs when a tag is deleted. The received TagDeleted object contains event metadata.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventTagDeleted

Information about the post that was deleted.

An event that occurs when a tag is deleted
JavaScript
Errors

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

Did this help?

onTagUpdated( )


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 tag is updated.

Method Declaration
Copy
function wixBlog_onTagUpdated(event: TagUpdated): void;
Method Parameters
eventTagUpdated
onTagUpdated example
JavaScript
export function wixBlog_onTagUpdated(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?