wpcom_youtube_embed_crazy_url_init

The Jetpack by WordPress.com wpcom youtube embed crazy url init function.

Description

wpcom_youtube_embed_crazy_url_init(); 

Usage

  1. if ( !function_exists( 'wpcom_youtube_embed_crazy_url_init' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/youtube.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wpcom_youtube_embed_crazy_url_init(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/modules/shortcodes/youtube.php  
  1. function wpcom_youtube_embed_crazy_url_init() { 
  2. wp_embed_register_handler( 'wpcom_youtube_embed_crazy_url', '#https?://(?:www\.)?(?:youtube.com/(?:v/|playlist|watch[/\#?])|youtu\.be/).*#i', 'wpcom_youtube_embed_crazy_url' );