jetpack_lytro_register_embed_handler

Register Embed Handler.

Description

jetpack_lytro_register_embed_handler(); 

Registers a WordPress Embed handler to allow embedding Lytro images by publishing the Lytro URL on a line by itself.


Usage

  1. if ( !function_exists( 'jetpack_lytro_register_embed_handler' ) ) { 
  2. require_once '/modules/shortcodes/lytro.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_lytro_register_embed_handler(); 
  7.  

Defined (1)

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

/modules/shortcodes/lytro.php  
  1. function jetpack_lytro_register_embed_handler() { 
  2. wp_embed_register_handler( 'lytro', '#^https?://(www\.)?lytro\.com/living-pictures/([0-9]+)/?#i', 'jetpack_lytro_embed_handler' ); 
  3. wp_embed_register_handler( 'lytro-v2', '#^https?://(www\.)?pictures\.lytro\.com/([^/]+)/pictures/([0-9]+)/?#i', 'jetpack_lytro_embed_handler' );