fallback_intermediate_image_sizes WordPress Filter Hook
This hook allows you to filter the image sizes that are used when an image is not found for a specific size. This is useful for providing custom image sizes for specific themes or plugins.
apply_filters( 'fallback_intermediate_image_sizes', string[] $fallback_sizes , array $metadata ) #
Filters the image sizes generated for non-image mime types.
Parameters
- $fallback_sizes
(string[])An array of image size names.
- $metadata
(array)Current attachment metadata.
Source
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |