Search.../

onCommentUnliked( )

A backend event that fires when a forum comment is unliked.

Description

The onCommentUnliked() event handler runs when a like is removed from an existing forum comment in your site. The received UnlikedComment object contains information about the comment that was unliked.

Note: Backend events are not fired when previewing your site.

Syntax

function onCommentUnliked(event: UnlikedComment): void

onCommentUnliked Parameters

NAME
TYPE
DESCRIPTION
event
UnlikedComment

Information about the forum comment that was unliked.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

A backend event that occurs when a forum comment is unliked

Copy Code
1// Place this code in a file named events.js
2// in the Backend section of your code files.
3
4export function wixForum_onCommentUnliked(event) {
5 const unlikedCommentId = event.commentId;
6 console.log("Comment unliked");
7}