Filter hook 'wp_calculate_image_srcset_meta'

in WP Core File wp-includes/media.php at line 1320

Description

Pre-filters the image meta to be able to fix inconsistencies in the stored data. }

Occurrences

Filename Line Number
wp-includes/media.php 1320

Parameters

Type Name Description
array $image_meta The image meta data as returned by 'wp_get_attachment_metadata()'.
int[] $size_array { An array of requested width and height values.
string $image_src The 'src' of the image.
int $attachment_id The image attachment ID or 0 if not supplied.

PHP Doc

/**
	 * 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.
	 */