wpcom_youtube_embed_crazy_url

For bare URLs on their own line of the form http://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US.

Description

wpcom_youtube_embed_crazy_url( $matches, $attr, $url ); 

Parameters (3)

0. $matches
The matches.
1. $attr
The attr.
2. $url
The url.

Usage

  1. if ( !function_exists( 'wpcom_youtube_embed_crazy_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/youtube.php'; 
  3.  
  4. // The matches. 
  5. $matches = null; 
  6.  
  7. // The attr. 
  8. $attr = null; 
  9.  
  10. // The url. 
  11. $url = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = wpcom_youtube_embed_crazy_url($matches, $attr, $url); 
  15.  

Defined (1)

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

/modules/shortcodes/youtube.php  
  1. function wpcom_youtube_embed_crazy_url( $matches, $attr, $url ) { 
  2. return youtube_id( $url );