jetpack_lytro_embed_handler

Lytro Embed Handler.

Description

jetpack_lytro_embed_handler( $matches, $attr, $url, $rawattr ); 

The embed handler function which converts a Lytro URL on a line by itself into an embedded Lytro image.

Parameters (4)

0. $matches
The matches.
1. $attr
The attr.
2. $url
The url.
3. $rawattr
The rawattr.

Usage

  1. if ( !function_exists( 'jetpack_lytro_embed_handler' ) ) { 
  2. require_once '/modules/shortcodes/lytro.php'; 
  3.  
  4. // The matches. 
  5. $matches = null; 
  6.  
  7. // The attr. 
  8. $attr = null; 
  9.  
  10. // The url. 
  11. $url = null; 
  12.  
  13. // The rawattr. 
  14. $rawattr = null; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = jetpack_lytro_embed_handler($matches, $attr, $url, $rawattr); 
  18.  

Defined (1)

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

/modules/shortcodes/lytro.php  
  1. function jetpack_lytro_embed_handler( $matches, $attr, $url, $rawattr ) { 
  2. return jetpack_lytro_shortcode_handler( jetpack_lytro_shortcode_url_to_atts( $url ) );