apply_filters( 'file_is_displayable_image', bool $result, string $path )

Filters whether the current image is displayable in the browser.

Parameters

$result

(bool) Whether the image can be displayed. Default true.

$path

(string) Path to the image.

Source

File: wp-admin/includes/image.php

View on Trac

Changelog

Version Description
2.5.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/file_is_displayable_image