jetpack_shortcode_get_youtube_id

Required for class.media-extractor.php to match expected function naming convention.

Description

(bool|mixed) jetpack_shortcode_get_youtube_id( $url ); 

Returns (bool|mixed)

The Youtube video ID via jetpack_get_youtube_id

Parameters (1)

0. $url
Can be just the $url or the whole $atts array

Usage

  1. if ( !function_exists( 'jetpack_shortcode_get_youtube_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/functions.compat.php'; 
  3.  
  4. // Can be just the $url or the whole $atts array 
  5. $url = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_shortcode_get_youtube_id($url); 
  9.  

Defined (1)

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

/functions.compat.php  
  1. function jetpack_shortcode_get_youtube_id( $url ) { 
  2. return jetpack_get_youtube_id( $url );