Filters the “real” file type of the given file.
$wp_check_filetype_and_extarray
ext string|falsetype string|falseproper_filename string|false$filestring
$filenamestring
$mimesstring[]|null
$real_mimestring|false
return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' ), $file, $filename, $mimes, $real_mime );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_check_filetype_and_ext