Filter hook 'intermediate_image_sizes_advanced'
in WP Core File wp-admin/includes/image.php at line 383
Description
Filters the image sizes automatically generated when uploading an image.
Occurrences
Filename |
Line Number |
wp-admin/includes/image.php |
383 |
Parameters
Type |
Name |
Description |
array |
$new_sizes |
Associative array of image sizes to be created. |
array |
$image_meta |
The image meta data: width, height, file, sizes, etc. |
int |
$attachment_id |
The attachment post ID for the image. |
PHP Doc
/**
* Filters the image sizes automatically generated when uploading an image.
*
* @since 2.9.0
* @since 4.4.0 Added the `$image_meta` argument.
* @since 5.3.0 Added the `$attachment_id` argument.
*
* @param array $new_sizes Associative array of image sizes to be created.
* @param array $image_meta The image meta data: width, height, file, sizes, etc.
* @param int $attachment_id The attachment post ID for the image.
*/