Used By
| Used By | Description |
|---|---|
| wp-includes/media.php: img_caption_shortcode() | Builds the Caption shortcode output. |
Filters the width of an image’s caption.
By default, the caption is 10 pixels greater than the width of the image, to prevent post content from running up against a floated image.
(int) Width of the caption in pixels. To remove this inline style, return zero.
(array) Attributes of the caption shortcode.
(string) The image element, possibly wrapped in a hyperlink.
File: wp-includes/media.php
| Version | Description |
|---|---|
| 3.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/img_caption_shortcode_width