Used By
Used By | Description |
---|---|
wp-admin/includes/media.php: image_add_caption() | Adds image shortcode with caption to editor. |
Filters the caption text.
Note: If the caption text is empty, the caption shortcode will not be appended to the image HTML when inserted into the editor.
Passing an empty value also prevents the ‘image_add_caption_shortcode’ Filters from being evaluated at the end of image_add_caption().
(string) The original caption text.
(int) The attachment ID.
Version | Description |
---|---|
4.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/image_add_caption_text