A backend event that fires when a forum comment is upvoted.
The onCommentUpvoted()
event handler runs when an existing forum comment in your site is upvoted.
The received UpvotedComment
object contains information about the comment that was upvoted.
Notes:
Only comments on posts with a postType
of "QUESTION"
can be upvoted.
Backend events are not fired when previewing your site.
Information about the forum comment that was upvoted.
A backend event that fires when a forum post is closed.
The onPostClosed()
event handler runs when an existing forum post in your site is closed.
When a forum post is closed, members can't comment on the post.
The received ClosedPost
object contains information about the post that was closed.
Notes:
By default, forum posts are open.
Backend events are not fired when previewing your site.
Information about the forum post that was closed.
A backend event that fires when a new forum post is created.
The onPostCreated()
event handler runs when a new forum post is created in your site.
The received CreatedPost
object contains information about the new post that was created.
Note: Backend events are not fired when previewing your site.
Information about the forum post that was created.
A backend event that fires when a forum post is deleted.
The onPostDeleted()
event handler runs when an existing forum post in your site is deleted.
The received DeletedPost
object contains information about the post that was deleted.
Note: Backend events are not fired when previewing your site.
Information about the forum post that was deleted.
A backend event that fires when a forum post is liked.
The onPostLiked()
event handler runs when an existing forum post in your site is liked.
The received LikedPost
object contains information about the post that was liked.
Note: Backend events are not fired when previewing your site.
function onPostLiked(event: LikedPost): void;
Information about the forum post that was liked.
// Place this code in a file named events.js
// in the Backend section of your code files.
export function wixForum_onPostLiked(event) {
const likedPostId = event.postId;
console.log("Post liked");
}