wp_check_filetype( ... )

Retrieve the file type from the file name.

Parameters:
  • $filename string
  • $mimes string[]