image_add_caption_shortcode filter-hook . WP 2.6.0
Filters the image HTML markup including the caption shortcode.
Usage
add_filter( 'image_add_caption_shortcode', 'filter_function_name_801', 10, 2 ); function filter_function_name_801( $shcode, $html ){ // filter... return $shcode; }
- $shcode(string)
- The image HTML markup with caption shortcode.
- $html(string)
- The image HTML markup.
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
wp-admin/includes/media.php 249
return apply_filters( 'image_add_caption_shortcode', $shcode, $html );