img_caption_shortcode_width

img_caption_shortcode_width

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('img_caption_shortcode_width') is found 1 times:

  • /wp-includes/media.php line 2533
    	 *                         return zero.
    	 * @param array  $atts     Attributes of the caption shortcode.
    	 * @param string $content  The image element, possibly wrapped in a hyperlink.
    	 */
    	$caption_width = apply_filters( 'img_caption_shortcode_width', $width, $atts, $content );
    
    	$style = '';
    
    	if ( $caption_width ) {
    		$style = 'style="width: ' . (int) $caption_width . 'px" ';
    	}