file_is_displayable_image()
Validate that file is suitable for displaying within a web page.
1 time — 0.000001 sec (speed of light) | 50000 times — 0.42 sec (very fast) | PHP 7.2.16, WP 5.1.1
Hooks from the function
Return
true|false
. True if suitable, false if not suitable.
Usage
file_is_displayable_image( $path );
- $path(string) (required)
- File path to test.
Changelog
Since 2.5.0 | Introduced. |