WPDev.one
Core Function
View Source on Trac ↗

get_allowed_mime_types()

get_allowed_mime_types( mixed $user = null )

Retrieves the list of allowed mime types and file extensions.

Parameters 1 required

Name / Type Description
(int

| WP_User) $user Optional. User to check. Defaults to current user.

Required

Return Value

(string[])
string[] Array of mime types keyed by the file extension regex corresponding to those types.

Function Information

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