jetpack_shortcode_instagram

The Jetpack by WordPress.com jetpack shortcode instagram function.

Description

jetpack_shortcode_instagram( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

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

Defined (1)

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

/modules/shortcodes/instagram.php  
  1. function jetpack_shortcode_instagram( $atts ) { 
  2. global $wp_embed; 
  3.  
  4. if ( empty( $atts['url'] ) ) { 
  5. return ''; 
  6.  
  7. return $wp_embed->shortcode( $atts, $atts['url'] );