get_allowed_mime_types


get_allowed_mime_types ( $user = null )

Parameters:
  • (int|WP_User) $user Optional. User to check. Defaults to current user.
Returns:
  • (array) Array of mime types keyed by the file extension regex corresponding to those types.
Defined at:

Description

Retrieve list of allowed mime types and file extensions.

Related Functions

get_post_mime_types, get_allowed_themes, get_available_post_mime_types, get_post_mime_type, wp_get_mime_types

Top Google Results

User discussions

wpseek mobile