jetpack_embed_medium_shortcode

The Jetpack by WordPress.com jetpack embed medium shortcode function.

Description

jetpack_embed_medium_shortcode( $atts ); 

Parameters (1)

0. $atts
The atts.

Usage

  1. if ( !function_exists( 'jetpack_embed_medium_shortcode' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/shortcodes/medium.php'; 
  3.  
  4. // The atts. 
  5. $atts = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_embed_medium_shortcode($atts); 
  9.  

Defined (1)

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

/modules/shortcodes/medium.php  
  1. function jetpack_embed_medium_shortcode( $atts ) { 
  2. $atts = jetpack_embed_medium_args( $atts ); 
  3.  
  4. if ( ! empty( $atts['url'] ) ) { 
  5. global $wp_embed; 
  6. return $wp_embed->shortcode( $atts, $atts['url'] );