On this page
apply_filters( 'image_add_caption_shortcode', string $shcode, string $html )
Filters the image HTML markup including the caption shortcode.
Parameters
$shcodestring-
The image HTML markup with caption shortcode.
$htmlstring-
The image HTML markup.
Source
File: wp-admin/includes/media.php. View all references
return apply_filters( 'image_add_caption_shortcode', $shcode, $html );
Related
Used By
| Used By | Description |
|---|---|
| image_add_caption() wp-admin/includes/media.php | Adds image shortcode with caption to editor. |
Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_add_caption_shortcode