youtube

The Evolved 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).

/functions.php  
  1.  
  2. /**-----------------------------------------------------------------------------------*/ 
  3. /** Shortcodes 
  4. /**-----------------------------------------------------------------------------------*/ 
  5. // YouTube 
  6. add_shortcode('youtube', 'shortcode_youtube'); 
  7. function shortcode_youtube($atts) { 
  8. $atts = shortcode_atts( 
  9. array( 
  10. 'id' => '',  
  11. 'width' => 594,