Search...
onDraftDeleted( )
Developer Preview
Triggered when a draft post is deleted.
Syntax
function wixBlog_onDraftDeleted(event: DraftDeleted): void
onDraftDeleted Parameters
NAME
TYPE
DESCRIPTION
event
Optional
DraftDeleted
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
onDraftDeleted example
Copy Code
12 export function wixBlog_onDraftDeleted(event) {3 const eventId = event.metadata.id4 const entityId = event.entity._id;5 }67