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.


Top ↑

Source

File: wp-admin/includes/image.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.