apply_filters( 'intermediate_image_sizes', string[] $default_sizes )
Filters the list of intermediate image sizes.
Parameters
- $default_sizes
-
(string[]) An array of intermediate image size names. Defaults are 'thumbnail', 'medium', 'medium_large', 'large'.
More Information
The $default_sizes
parameter also contains all image sizes registered with add_image_size()
Source
File: wp-includes/media.php
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/intermediate_image_sizes