caption
The WordPress Core caption shortcode.
Usage
- // basic usage
- echo do_shortcode('[caption]');
- // variable usage
- $result = do_shortcode('[caption]');
- echo $result;
Defined (1)
The shortcode is defined in the following location(s).
- /wp-includes/media.php
- function _wp_post_thumbnail_class_filter_remove( $attr ) {
- }
- add_shortcode('wp_caption', 'img_caption_shortcode');
- add_shortcode('caption', 'img_caption_shortcode');
- /**
- * Builds the Caption shortcode output.
- *
- * Allows a plugin to replace the content that would otherwise be returned. The