Filters the wp_image_src_get_dimensions() value.
$dimensionsarray|false$image_srcstring$image_metaarray$attachment_idintwp-includes/media.php:1777wp_image_src_get_dimensions() * false if dimensions could not be determined. * @param string $image_src The image source file. * @param array $image_meta The image meta data as returned by * 'wp_get_attachment_metadata()'. * @param int $attachment_id The image attachment ID. Default 0. */ return apply_filters( 'wp_image_src_get_dimensions', $dimensions, $image_src, $image_meta, $attachment_id );} /** * Adds 'srcset' and 'sizes' attributes to an existing 'img' element. * * @since 4.4.0Introduced in 5.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.