wp_caption

The WordPress Core wp caption shortcode.


Usage

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

Defined (1)

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

/wp-includes/media.php  
  1. /**/ 
  2. function _wp_post_thumbnail_class_filter_remove( $attr ) { 
  3.  
  4. add_shortcode('wp_caption', 'img_caption_shortcode'); 
  5. add_shortcode('caption', 'img_caption_shortcode'); 
  6.  
  7. /** 
  8. * Builds the Caption shortcode output.