jetpack_shortcode_get_videopress_id

Get VideoPress ID from videopress shortcode attributes.

Description

(int) jetpack_shortcode_get_videopress_id( (array) $atts ); 

Returns (int)

$id VideoPress ID.

Parameters (1)

0. $atts (array)
Shortcode attributes.

Usage

  1. if ( !function_exists( 'jetpack_shortcode_get_videopress_id' ) ) { 
  2. require_once '/modules/shortcodes.php'; 
  3.  
  4. // Shortcode attributes. 
  5. $atts = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_shortcode_get_videopress_id($atts); 
  9.  

Defined (1)

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

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