On this page
apply_filters( 'file_is_displayable_image', bool $result, string $path )
Filters whether the current image is displayable in the browser.
Parameters
$resultbool-
Whether the image can be displayed. Default true.
$pathstring-
Path to the image.
Source
File: wp-admin/includes/image.php. View all references
return apply_filters( 'file_is_displayable_image', $result, $path );
Related
Used By
| Used By | Description |
|---|---|
| file_is_displayable_image() wp-admin/includes/image.php | Validates that file is suitable for displaying within a web page. |
Changelog
| Version | Description |
|---|---|
| 2.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/file_is_displayable_image