Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/includes/image.php | apply_filters | 375 | /** * 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. */ |
Hook Parameters
Parameter 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. |