Used By
| Used By | Description |
|---|---|
| wp-admin/includes/image.php: wp_create_image_subsizes() | Creates image sub-sizes, adds the new data to the image meta |
Filters the image sizes automatically generated when uploading an image.
(array) Associative array of image sizes to be created.
(array) The image meta data: width, height, file, sizes, etc.
(int) The attachment post ID for the image.
| Version | Description |
|---|---|
| 5.3.0 | Added the $attachment_id argument. |
| 4.4.0 | Added the $image_meta argument. |
| 2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/intermediate_image_sizes_advanced