On this page
apply_filters( 'intermediate_image_sizes_advanced', array $new_sizes, array $image_meta, int $attachment_id )
Filters the image sizes automatically generated when uploading an image.
Parameters
$new_sizesarray-
Associative array of image sizes to be created.
$image_metaarray-
The image meta data: width, height, file, sizes, etc.
$attachment_idint-
The attachment post ID for the image.
Source
File: wp-admin/includes/image.php. View all references
$new_sizes = apply_filters( 'intermediate_image_sizes_advanced', $new_sizes, $image_meta, $attachment_id );
Related
Used By
| Used By | Description |
|---|---|
| wp_create_image_subsizes() wp-admin/includes/image.php | Creates image sub-sizes, adds the new data to the image meta |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/intermediate_image_sizes_advanced