onPostLiked( )


An event that is triggered when a post is liked.

The onPostLiked() event handler runs when a post is liked. The received PostLikedEvent object contains data about the liked post including the postId, and the memberId or anonymousVisitorId.

Note: Backend events don't work when previewing your site.

Method Declaration
Copy
Method Parameters
eventPostLikedEvent

Information about the post that was liked.

Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?