Skip to:
Content

BuddyPress.org

Changes between Version 4 and Version 5 of Ticket #6772, comment 5


Ignore:
Timestamp:
12/16/2015 01:48:50 AM (9 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6772, comment 5

    v4 v5  
    24243. Hooking into oEmbed for BuddyPress purposes
    2525
    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.
    2727- The `bp_activity_embed_filter_html()` function alters the fallback `<blockquote>` HTML for BuddyPress purposes.
    2828- The `bp_activity_embed_filter_oembed_response_data()` function filters the oEmbed JSON response.