WPDev.one
Core Function
View Source on Trac ↗

wp_ext2type()

wp_ext2type( mixed $ext )

Retrieves the file type based on the extension name.

Parameters 1 required

Name / Type Description
$ext
string

The extension to search.

Required

Return Value

((string)
| void) The file type, example: audio, video, document, spreadsheet, etc.

Function Information

Since Version
2.5.0
Source File
wp-includes/functions.php
Advertisement