load_default_embeds

load_default_embeds

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('load_default_embeds') is found 1 times:

  • /wp-includes/embed.php line 201
    	 * @since 2.9.0
    	 *
    	 * @param bool $maybe_load_embeds Whether to load the embeds library. Default true.
    	 */
    	if ( ! apply_filters( 'load_default_embeds', true ) ) {
    		return;
    	}
    
    	wp_embed_register_handler( 'youtube_embed_url', '#https?://(www.)?youtube\.com/(?:v|embed)/([^/]+)#i', 'wp_embed_handler_youtube' );
    
    	/**