Changes between Version 4 and Version 5 of Ticket #6772, comment 5
- Timestamp:
- 12/16/2015 01:48:50 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6772, comment 5
v4 v5 24 24 3. Hooking into oEmbed for BuddyPress purposes 25 25 26 - Requires some hackery. WordPress expects a WordPress post ID when formulating the oEmbed response. Since we haven't added any integration into WP's REST API, to overcome this , I'm passing our Members Directory page ID and adding some markers so BP can render the oEmbed response. See `bp_activity_embed_filter_oembed_request_post_id()` for what I'm doing.26 - Requires some hackery. WordPress expects a WordPress post ID when formulating the oEmbed response. Since we haven't added any integration into WP's REST API, to overcome this at the moment, I'm passing our Members Directory page ID and adding some markers so BP can render the oEmbed response. See `bp_activity_embed_filter_oembed_request_post_id()` for what I'm doing. 27 27 - The `bp_activity_embed_filter_html()` function alters the fallback `<blockquote>` HTML for BuddyPress purposes. 28 28 - The `bp_activity_embed_filter_oembed_response_data()` function filters the oEmbed JSON response.