Used By
Used By | Description |
---|---|
wp-includes/media.php: wp_calculate_image_srcset() | A helper function to calculate the image sources to include in a ‘srcset’ attribute. |
Let plugins pre-filter the image meta to be able to fix inconsistencies in the stored data.
(array) The image meta data as returned by 'wp_get_attachment_metadata()'.
(int[]) An array of requested width and height values.
(int) The height in pixels.
(string) The 'src' of the image.
(int) The image attachment ID or 0 if not supplied.
File: wp-includes/media.php
Version | Description |
---|---|
4.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_calculate_image_srcset_meta