A WordPress-centric search engine for devs and theme authors



wp_check_filetype_and_ext ›

Since3.0.0
Deprecatedn/a
apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' )
Parameters: (4)
  • (array) $wp_check_filetype_and_ext File data array containing 'ext', 'type', and 'proper_filename' keys.
    Required: Yes
  • (string) $file Full path to the file.
    Required: Yes
  • (string) $filename The name of the file (may differ from $file due to $file being in a tmp directory).
    Required: Yes
  • (array) $mimes Key is the file extension with value as the mime type.
    Required: Yes
Defined at:
Codex:

Filters the "real" file type of the given file.





Source

return apply_filters( 'wp_check_filetype_and_ext', compact( 'ext', 'type', 'proper_filename' ), $file, $filename, $mimes );