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