onCommentCreate( )


Adds an event handler that runs when a new comment is created in the WixComments element.

The onCommentCreate() function sets a callback function that is called when a new comment is created in the WixComments element.

Method Declaration
Copy
Method Parameters
callbackfunctionRequired

callback(comment: WidgetComment): void The callback function that is called when a new comment is created.

Was this helpful?
Yes
No