Search.../

onDraftUpdated( )

Developer Preview

Triggered when a draft post is updated.

Syntax

function wixBlog_onDraftUpdated(event: DraftUpdated): void

onDraftUpdated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
DraftUpdated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onDraftUpdated example

Copy Code
1
2 export function wixBlog_onDraftUpdated(event) {
3 const eventId = event.metadata.id
4 const entityId = event.entity._id;
5 }
6
7