wp_check_filetype_and_ext – filter
Filters the “real” file type of the given file.
Parameters
- .
- ( 3.0.0 ) . .
- The
- ( 5.1.0 ) $real_mime parameter was added. . . .
- ( array ) $wp_check_filetype_and_ext { Values for the extension, mime type, and corrected filename. . . .
- $ext
- ( string|false ) File extension, or false if the file doesn’t match a mime type. . . .
- $type
- ( string|false ) File mime type, or false if the file doesn’t match a mime type. . . .
- $proper_filename
- ( string|false ) File name with its correct extension, or false if it cannot be determined. } . . .
- ( string ) $file Full path to the file. . . .
- ( string ) $filename The name of the file (may differ from $file due to $file being in a tmp directory). . . .
- $mimes
- ( string[]|null ) Array of mime types keyed by their file extension regex, or null if none were provided. . . .
- ( string|false ) $real_mime The actual mime type or false if the type cannot be determined. . . .