embed_oembed_discover

embed_oembed_discover

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('embed_oembed_discover') is found 1 times:

  • /wp-includes/class-wp-embed.php line 305
    		 * @see WP_oEmbed::discover()
    		 *
    		 * @param bool $enable Whether to enable `<link>` tag discovery. Default true.
    		 */
    		$attr['discover'] = apply_filters( 'embed_oembed_discover', true );
    
    		// Use oEmbed to get the HTML.
    		$html = wp_oembed_get( $url, $attr );
    
    		if ( $post_id ) {
    			if ( $html ) {
    

See this hook used in plugins: