WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about img_caption_shortcode_width

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 2290 /**
* 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.
*
* @since 3.7.0
*
* @see img_caption_shortcode()
*
* @param int $width Width of the caption in pixels. To remove this inline style,
* return zero.
* @param array $atts Attributes of the caption shortcode.
* @param string $content The image element, possibly wrapped in a hyperlink.
*/

Hook Parameters

Parameter Type Name Description
int $width Width of the caption in pixels. To remove this inline style,
array $atts Attributes of the caption shortcode.
string $content The image element, possibly wrapped in a hyperlink.