Used By
| Used By | Description | 
|---|---|
| wp-includes/functions.php: wp_check_filetype_and_ext() | Attempt to determine the real file type of a file. | 
Filters the “real” file type of the given file.
 (array) Values for the extension, mime type, and corrected filename. 
(string|false) File extension, or false if the file doesn't match a mime type.
(string|false) File mime type, or false if the file doesn't match a mime type.
(string|false) File name with its correct extension, or false if it cannot be determined.
(string) Full path to the file.
(string) The name of the file (may differ from $file due to $file being in a tmp directory).
(string[]) Array of mime types keyed by their file extension regex.
(string|bool) The actual mime type or false if the type cannot be determined.
| Version | Description | 
|---|---|
| 5.1.0 | The $real_mime parameter was added. | 
| 3.0.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/hooks/wp_check_filetype_and_ext