medium

Shortcode support that allows passing in URL.


Usage

  1. // basic usage 
  2. echo do_shortcode('[medium]'); 
  1. // variable usage 
  2. $result = do_shortcode('[medium]'); 
  3. echo $result;  

Defined (1)

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

/modules/shortcodes/medium.php  
  1. /** 
  2. * Shortcode support that allows passing in URL 
  3. * [medium url="https://medium.com/help-center" width="100%" border="false" collapsed="true"] 
  4. */ 
  5. add_shortcode( 'medium', 'jetpack_embed_medium_shortcode' ); 
  6.  
  7. function jetpack_embed_medium_shortcode( $atts ) { 
  8. $atts = jetpack_embed_medium_args( $atts ); 
  9.  
  10. if ( ! empty( $atts['url'] ) ) {