<output>

The Jetpack by WordPress.com output shortcode.


Usage

  1. // assign value 
  2. $output = 'dynamic_tag'; 
  3.  
  4. // basic usage 
  5. echo do_shortcode("[$output]"); 
  1. // assign value 
  2. $output = 'dynamic_tag'; 
  3.  
  4. // variable usage 
  5. $result = do_shortcode("[$output]"); 
  6. echo $result;  

Defined (1)

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

/modules/widgets/image-widget.php  
  1. /** This filter is documented in core/src/wp-includes/default-widgets.php */ 
  2. $caption = apply_filters( 'widget_text', $instance['caption'] ); 
  3. $output = '[caption align="align' . esc_attr( $instance['align'] ) . '" width="' . esc_attr( $instance['img_width'] ) .'"]' . $output . ' ' . $caption . '[/caption]'; // wp_kses_post caption on update 
  4.  
  5. echo '<div class="jetpack-image-container">' . do_shortcode( $output ) . '</div>'; 
  6.  
  7. echo "\n" . $after_widget; 
  8.