Advertisements

wp_maybe_load_embeds

Definition:
function wp_maybe_load_embeds() {}

Determines if default embed handlers should be loaded.
Checks to make sure that the embeds library hasn’t already been loaded. If it hasn’t, then it will load the embeds library.

Defined filters

  • load_default_embeds
    apply_filters( 'load_default_embeds', true )

Source code

function wp_maybe_load_embeds() {

	if ( ! apply_filters( 'load_default_embeds', true ) )

		return;

	wp_embed_register_handler( 'googlevideo', '#http://video\.google\.([A-Za-z.]{2,5})/videoplay\?docid=([\d-]+)(.*?)#i', 'wp_embed_handler_googlevideo' );

}

15209

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: