Search...
onPostUnliked( )
A backend event that fires when a forum post is unliked.
Description
The onPostUnliked()
event handler runs when a like is removed from a forum post in your site.
The received UnlikedPost
object contains information about the post that was unliked.
Note: Backend events are not fired when previewing your site.
Syntax
function onPostUnliked(event: UnlikedPost): void
onPostUnliked Parameters
NAME
TYPE
DESCRIPTION
event
UnlikedPost
Information about the forum post that was unliked.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
A backend event that occurs when a forum post is unliked
Copy Code
1// Place this code in a file named events.js2// in the Backend section of your code files.34export function wixForum_onPostUnliked(event) {5 const unlikedPostId = event.postId;6 console.log("Post unliked");7}