WordPress at Your Fingertips
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_3404', 10, 3 );
function filter_function_name_3404( $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 2128
$output = apply_filters( 'img_caption_shortcode', '', $attr, $content );

Where in WP core the hook is used WordPress

Usage not found.