BP_Core_oEmbed_Extension::setup_hooks()
Hooks! We do the dirty work here, so you don’t have to! 🙂
Description Description
More hooks are available in the setup_template_parts() method.
Source Source
File: bp-core/classes/class-bp-core-oembed-extension.php
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 Changelog
Version | Description |
---|---|
2.6.0 | Introduced. |