WordPress at a glance
filter is not described

img_caption_shortcode filter-hook . WP 2.6.0

Filters the default caption shortcode output.

If the filtered output isn't empty, it will be used instead of generating the default caption template.


add_filter( 'img_caption_shortcode', 'filter_function_name_3875', 10, 3 );
function filter_function_name_3875( $output, $attr, $content ){
	// filter...

	return $output;
The caption output.
Default: ''
Attributes of the caption shortcode.
The image element, possibly wrapped in a hyperlink.


Since 2.6.0 Introduced.

Where the hook is called

wp-includes/media.php 1660
$output = apply_filters( 'img_caption_shortcode', '', $attr, $content );

Where the hook is used (in WP core)

Usage not found!