Core Function
View Source on Trac ↗ wp_get_image_mime()
wp_get_image_mime( mixed $file ) Returns the real mime type of an image file.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $file string | Full path to the file. Required |
Return Value
((string)
| false) The actual mime type or false if the type cannot be determined.
Function Information
Since Version
4.7.1
Source File
wp-includes/functions.php
Advertisement