Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

wp_check_filetype()

3 tags 1 category

wp_check_filetype() — Retrieves the file type from the file name. You can optionally define the mime array, if needed.

Inputs: $filename (string): File name or path. $mimes (string[]|null): Optional. Array of allowed mime types keyed by their file extension regex. Defaults to the result of get_allowed_mime_types().

Returns array: Values for the extension and mime type. Field $ext (string|false): File extension, or false if the file doesn’t match a mime type. Field $type (string|false): File mime type, or false if the file doesn’t match a mime type.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…