file_is_valid_image
file_is_valid_image ( $path )
Parameters:- (string) path File path to test if valid image.
Returns:- (bool) True if valid image, false if not valid image.
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Validates that file is an image.