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 Parameters


(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.

Top ↑

Source Source

File: wp-admin/includes/image.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.3.0 Added the $attachment_id argument.
4.4.0 Added the $image_meta argument.
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.