Core Function
View Source on Trac ↗ file_is_valid_image()
file_is_valid_image( mixed $path ) Validates that file is an image.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $path string | File path to test if valid image. Required |
Return Value
(bool)
True if valid image, false if not valid image.
Function Information
Since Version
2.5.0
Source File
wp-admin/includes/image.php
Advertisement