Search.../

onPostCreated( )

Developer Preview

A new post was created.

Syntax

function onPostCreated(event: PostCreated): void

onPostCreated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
PostCreated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onPostCreated example

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