Search...
onCommentLiked( )
A backend event that fires when a forum comment is liked.
Description
The onCommentLiked()
event handler runs when an existing forum comment in your site is liked.
The received LikedComment
object contains information about the comment that was liked.
Note: Backend events are not fired when previewing your site.
Syntax
function onCommentLiked(event: LikedComment): void
onCommentLiked Parameters
NAME
TYPE
DESCRIPTION
event
LikedComment
Information about the forum comment that was liked.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
A backend event that occurs when a forum comment is liked
Copy Code
1// Place this code in a file named events.js2// in the Backend section of your code files.34export function wixForum_onCommentLiked(event) {5 const likedCommentId = event.commentId;6 console.log("Comment liked");7}