wpcom_shortcodereverse_huluembed

Initiates process to convert iframe HTML into a Hulu shortcode.

Description

(string) wpcom_shortcodereverse_huluembed( (array) $attrs ); 

Example:

Converts to: [hulu id=nlg_ios3tutcfrhatkiaow width=512 height=288 start_time=10 end_time=20 thumbnail_frame=11]

Returns (string)

Parameters (1)

0. $attrs (array)
The attrs.

Usage

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

Defined (1)

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

/modules/shortcodes/hulu.php  
  1. function wpcom_shortcodereverse_huluembed( $attrs ) { 
  2.  
  3. $shortcode = wpcom_shortcodereverse_huluhelper( $attrs ); 
  4. if ( substr( $shortcode, 0, 1 ) == '[' ) { 
  5. /** This action is documented in modules/widgets/social-media-icons.php */ 
  6. do_action( 'jetpack_bump_stats_extras', 'html_to_shortcode', 'hulu-embed' ); 
  7.  
  8. return $shortcode;