youtube

The Jetpack by WordPress.com youtube shortcode.


Usage

  1. // basic usage 
  2. echo do_shortcode('[youtube]'); 
  1. // variable usage 
  2. $result = do_shortcode('[youtube]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/youtube.php  
  1.  
  2. function youtube_shortcode( $atts ) { 
  3. return youtube_id( ( isset ( $atts[0] ) ) ? ltrim( $atts[0] , '=' ) : shortcode_new_to_old_params( $atts ) ); 
  4.  
  5. add_shortcode( 'youtube', 'youtube_shortcode' ); 
  6.  
  7. /** 
  8. * For bare URLs on their own line of the form 
  9. * http://www.youtube.com/v/9FhMMmqzbD8?fs=1&hl=en_US 
  10. */