<output>
The Jetpack by WordPress.com output shortcode.
Usage
- // assign value
- $output = 'dynamic_tag';
- // basic usage
- echo do_shortcode("[$output]");
- // assign value
- $output = 'dynamic_tag';
- // variable usage
- $result = do_shortcode("[$output]");
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /modules/widgets/image-widget.php
- /** This filter is documented in core/src/wp-includes/default-widgets.php */
- $caption = apply_filters( 'widget_text', $instance['caption'] );
- $output = '[caption align="align' . esc_attr( $instance['align'] ) . '" width="' . esc_attr( $instance['img_width'] ) .'"]' . $output . ' ' . $caption . '[/caption]'; // wp_kses_post caption on update
- }
- echo '<div class="jetpack-image-container">' . do_shortcode( $output ) . '</div>';
- }
- echo "\n" . $after_widget;
- }