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:

Description

Retrieves the list of allowed mime types and file extensions.

Related Functions

get_allowed_block_types, get_post_mime_types, get_allowed_themes, get_available_post_mime_types, get_post_mime_type

Top Google Results

User discussions

wpseek mobile