Used By
Used By | Description |
---|---|
wp-includes/media.php: wp_calculate_image_sizes() | Creates a ‘sizes’ attribute value for an image. |
Filters the output of ‘wp_calculate_image_sizes()’.
(string) A source size value for use in a 'sizes' attribute.
(array|string) Requested size. Image size or array of width and height values in pixels (in that order).
(string|null) The URL to the image file or null.
(array|null) The image meta data as returned by wp_get_attachment_metadata() or null.
(int) Image attachment ID of the original image or 0.
File: wp-includes/media.php
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_calculate_image_sizes