BP_Core_oEmbed_Extension::setup_hooks()
Hooks! We do the dirty work here, so you don’t have to!
Description
More hooks are available in the setup_template_parts() method.
Source
File: bp-core/classes/class-bp-core-oembed-extension.php
189 190 191 192 193 194 195 196 197 198 | protected function setup_hooks() { add_action( 'rest_api_init' , array ( $this , 'register_route' ) ); add_action( 'bp_embed_content' , array ( $this , 'inject_content' ) ); add_filter( 'embed_template' , array ( $this , 'setup_template_parts' ) ); add_filter( 'post_embed_url' , array ( $this , 'filter_embed_url' ) ); add_filter( 'embed_html' , array ( $this , 'filter_embed_html' ) ); add_filter( 'oembed_discovery_links' , array ( $this , 'add_oembed_discovery_links' ) ); add_filter( 'rest_pre_serve_request' , array ( $this , 'oembed_xml_request' ), 20, 4 ); } |
Changelog
Version | Description |
---|---|
BuddyPress 2.6.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.