apply_filters( 'img_caption_shortcode', string $output, array $attr, string $content )

Filters the default caption shortcode output.


Description

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

See also


Parameters

$output

(string) The caption output. Default empty.

$attr

(array) Attributes of the caption shortcode.

$content

(string) The image element, possibly wrapped in a hyperlink.


Source

File: wp-includes/media.php

View on GitHub



Changelog

Changelog
Version Description
WP-2.6.0 Introduced.