get_image_tag_class

get_image_tag_class

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('get_image_tag_class') is found 1 times:

  • /wp-includes/media.php line 404
    	 * @param string       $align Part of the class name for aligning the image.
    	 * @param string|int[] $size  Requested image size. Can be any registered image size name, or
    	 *                            an array of width and height values in pixels (in that order).
    	 */
    	$class = apply_filters( 'get_image_tag_class', $class, $id, $align, $size );
    
    	$html = '<img src="' . esc_url( $img_src ) . '" alt="' . esc_attr( $alt ) . '" ' . $title . $hwstring . 'class="' . $class . '" />';
    
    	/**
    	 * Filters the HTML content for the image tag.
    	 *