On this page
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
$outputstring-
The caption output. Default empty.
$attrarray-
Attributes of the caption shortcode.
$contentstring-
The image element, possibly wrapped in a hyperlink.
Source
File: wp-includes/media.php. View all references
$output = apply_filters( 'img_caption_shortcode', '', $attr, $content );
Related
Used By
| Used By | Description |
|---|---|
| img_caption_shortcode() wp-includes/media.php | Builds the Caption shortcode output. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/img_caption_shortcode