> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: onPostLiked(event: PostLikedEvent) # Method package: wixBlogBackend # Method menu location: wixBlogBackend --> onPostLiked # Method Link: https://dev.wix.com/docs/velo/apis/wix-blog-backend/events/on-post-liked.md # Method Description: 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 Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## An event that occurs when a blog post is liked ```javascript export function wixBlog_onPostLiked(event) { const postIdLiked = event.metadata.entityId; const memberId = event.data.memberId; console.log('Post liked', event); } /* Full event object: * { * "metadata":{ * "id": "e7ae2019-7d68-4342-8fa0-b28e20e8ec80", * "entityId": "e65bd5d9-36ca-4388-8064-3d785d0f5460", * "eventTime":"2022-06-16T15:22:49.242Z", * "triggeredByAnonymizeRequest":false * }, * "data":{ * "postId":"e65bd5d9-36ca-4388-8064-3d785d0f5460", * "memberId": "33d02592-dd28-4eff-9b8e-4c3bb9c737dd" * } * } */ ``` ---