jetpack_houzz_shortcode

The WordPress Core jetpack houzz shortcode function.

Description

jetpack_houzz_shortcode( $atts, (null) $content = null ); 

Parameters (2)

0. $atts
The atts.
1. $content — Optional. (null) => null
The content.

Usage

  1. if ( !function_exists( 'jetpack_houzz_shortcode' ) ) { 
  2. require_once '/modules/shortcodes/houzz.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // The content. 
  8. $content = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = jetpack_houzz_shortcode($atts, $content); 
  12.  

Defined (1)

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

/modules/shortcodes/houzz.php  
  1. function jetpack_houzz_shortcode( $atts, $content=null ) { 
  2. $url = substr( $atts[0], 1 ); 
  3. $args = array(); 
  4. if ( isset( $atts['w'] ) && is_numeric( $atts['w'] ) ) { 
  5. $args['width'] = $atts['w']; 
  6. if ( isset( $atts['h'] ) && is_numeric( $atts['h'] ) ) { 
  7. $args['height'] = $atts['h']; 
  8. $oembed = _wp_oembed_get_object(); 
  9. return $oembed->get_html( $url, $args );