Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/functions.php | apply_filters | 3241 | /** * Filters the "real" file type of the given file. * * @since 3.0.0 * @since 5.1.0 The $real_mime parameter was added. * * @param array $wp_check_filetype_and_ext { * Values for the extension, mime type, and corrected filename. * * @type string|false $ext File extension, or false if the file doesn't match a mime type. * @type string|false $type File mime type, or false if the file doesn't match a mime type. * @type string|false $proper_filename File name with its correct extension, or false if it cannot be determined. * } * @param string $file Full path to the file. * @param string $filename The name of the file (may differ from $file due to * $file being in a tmp directory). * @param string[] $mimes Array of mime types keyed by their file extension regex. * @param string|false $real_mime The actual mime type or false if the type cannot be determined. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
array | $wp_check_filetype_and_ex | t { |
string | $file | Full path to the file. |
string | $filename | The name of the file (may differ from $file due to |
string[] | $mimes | Array of mime types keyed by their file extension regex. |
string|false | $real_mime | The actual mime type or false if the type cannot be determined. |