onPostLiked( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:

An existing post was liked.

Permissions
Manage Forums
Read Forums
Learn more about app permissions.
Method Declaration
Copy
function onPostLiked(handler: function): void;
Method Parameters
handlerfunction

handler(event: PostLikedEnvelope): void | Promise<void>

JavaScript
import { posts } from "@wix/forum"; posts.onPostLiked((event) => { // handle your event here });
Did this help?