A backend event that fires when a forum post is unpinned.
The onPostUnpinned()
event handler runs when an existing forum post in your site is unpinned.
Only forum admins can unpin posts. The received UnpinnedPost
object contains information about the post that was unpinned.
Note: Backend events are not fired when previewing your site.
function onPostUnpinned(event: UnpinnedPost): void;
Information about the forum post that was unpinned.
// Place this code in a file named events.js
// in the Backend section of your code files.
export function wixForum_onPostUnpinned(event) {
const unpinnedPostId = event.postId;
console.log("Post unpinned");
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.