jetpack_shortcode_get_wpvideo_id

Get VideoPress ID from wpvideo shortcode attributes.

Description

jetpack_shortcode_get_wpvideo_id( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

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

Defined (1)

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

/modules/shortcodes.php  
  1. function jetpack_shortcode_get_wpvideo_id( $atts ) { 
  2. if ( isset( $atts[ 0 ] ) ) 
  3. return $atts[ 0 ]; 
  4. else 
  5. return 0;