jetpack_instagram_alternate_format_handler

The Jetpack by WordPress.com jetpack instagram alternate format handler function.

Description

jetpack_instagram_alternate_format_handler( $matches, $atts, $url ); 

Parameters (3)

0. $matches
The matches.
1. $atts
The atts.
2. $url
The url.

Usage

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

Defined (1)

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

/modules/shortcodes/instagram.php  
  1. function jetpack_instagram_alternate_format_handler( $matches, $atts, $url ) { 
  2. $url = esc_url_raw( 'https://instagram.com/p/' . $matches[4] ); 
  3. $matches[0] = $url; 
  4. $matches[3] = $matches[4]; 
  5. unset( $matches[4] ); 
  6. return jetpack_instagram_handler( $matches, $atts, $url );