wp_check_filetype


wp_check_filetype ( $filename, $mimes = null )

Parameters:
  • (string) $filename File name or path.
  • (array) $mimes Optional. Key is the file extension with value as the mime type.
Returns:
  • (array) Values with extension first and mime type.
Defined at:

Description

Retrieve the file type from the file name.

You can optionally define the mime array, if needed.

Related Functions

wp_check_filetype_and_ext, wp_checkdate, wp_cache_delete, wp_match_mime_types, wp_get_mime_types

Top Google Results

User discussions

wpseek mobile