WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about wp_calculate_image_srcset_meta

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/media.php apply_filters 1264 /**
* Pre-filters the image meta to be able to fix inconsistencies in the stored data.
*
* @since 4.5.0
*
* @param array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
* @param int[] $size_array {
* An array of requested width and height values.
*
* @type int $0 The width in pixels.
* @type int $1 The height in pixels.
* }
* @param string $image_src The 'src' of the image.
* @param int $attachment_id The image attachment ID or 0 if not supplied.
*/

Hook Parameters

Parameter Type Name Description
array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
int[] $size_arra y {
string $image_src The 'src' of the image.
int $attachment_id The image attachment ID or 0 if not supplied.