You can get the data of Activity Link Preview For BuddyPress with the “bp_activity_link” key of the BuddyPress/BuddyBoss “activity” Rest API.
{ "user_id": 1, "component": "activity", "content": { "rendered": "" }, "date": "2023-04-26T07:44:58", "date_gmt": "2023-04-26T07:44:58", "id": 802, "link": "http://buddypress.local/activity/p/802/", "primary_item_id": 0, "secondary_item_id": 0, "status": "published", "title": "admin posted an update", "type": "activity_update", "favorited": false, "user_avatar": { "full": "http://buddypress.local/wp-content/uploads/avatars/1/1663828147-bpfull.jpg", "thumb": "http://buddypress.local/wp-content/uploads/avatars/1/1663828147-bpthumb.jpg" }, "bp_activity_link": { "url": "https://www.youtube.com/watch?v=-0yC0f-lm2o&t=58s&ab_channel=WbcomDesigns", "title": " " }, "_links": { "self": [ { "href": "http://buddypress.local/wp-json/buddypress/v1/activity/802" } ], "collection": [ { "href": "http://buddypress.local/wp-json/buddypress/v1/activity/" } ], "user": [ { "embeddable": true, "href": "http://buddypress.local/wp-json/buddypress/v1/members/1" } ] } }
The post BP Activity Link Preview Rest Api – Activity Data appeared first on Wbcom Designs - Theme & Plugin Docs.