Search.../

onPostDeleted( )

Developer Preview

An existing post was removed.

Syntax

function onPostDeleted(event: PostDeleted): void

onPostDeleted Parameters

NAME
TYPE
DESCRIPTION
event
Optional
PostDeleted

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onPostDeleted example

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