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