Search.../

onReviewCreated( )

Developer Preview

Triggered when a review is created.

Syntax

function wixReviews_onReviewCreated(event: ReviewCreated): void

onReviewCreated Parameters

NAME
TYPE
DESCRIPTION
event
Optional
ReviewCreated

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

onReviewCreated example

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