Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/media.php | apply_filters | 1524 | /** * Filters the output of 'wp_calculate_image_sizes()'. * * @since 4.4.0 * * @param string $sizes A source size value for use in a 'sizes' attribute. * @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). * @param string|null $image_src The URL to the image file or null. * @param array|null $image_meta The image meta data as returned by wp_get_attachment_metadata() or null. * @param int $attachment_id Image attachment ID of the original image or 0. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $sizes | A source size value for use in a 'sizes' attribute. |
string|int[] | $size | Requested image size. Can be any registered image size name, or |
string|null | $image_src | The URL to the image file or null. |
array|null | $image_meta | The image meta data as returned by wp_get_attachment_metadata() or null. |
int | $attachment_id | Image attachment ID of the original image or 0. |