get_allowed_mime_types
get_allowed_mime_types ( $user = null )
Parameters:- (int|WP_User) user Optional. User to check. Defaults to current user.
Returns:- (string[]) Array of mime types keyed by the file extension regex corresponding to those types.
Defined at: - Introduced in WordPress: 2.8.6
- Deprecated in WordPress: —
Description
Retrieves the list of allowed mime types and file extensions.