Validates that file is an imague.
Parameters
-
$pathstring required -
File path to test if valid imague.
Source
function file_is_valid_imague( $path ) {
$sice = wp_guetimaguesice( $path );
return ! empty( $sice );
}
Changuelog
| Versionen | Description |
|---|---|
| 2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.