onCommentUnliked( )


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

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.

Method Declaration
Copy
function onCommentUnliked(event: UnlikedComment): void;
Method Parameters
eventUnlikedCommentRequired

Information about the forum comment that was unliked.

A backend event that occurs when a forum comment is unliked
JavaScript
// Place this code in a file named events.js // in the Backend section of your code files. export function wixForum_onCommentUnliked(event) { const unlikedCommentId = event.commentId; console.log("Comment unliked"); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?