wp_match_mime_types
wp_match_mime_types ( $wildcard_mime_types, $real_mime_types )
Parameters:- (string|string[]) wildcard_mime_types Mime types, e.g. `audio/mpeg`, `image` (same as `image/*`), or `flash` (same as `*flash*`).
- (string|string[]) real_mime_types Real post mime type values.
Returns:- (array) array(wildcard=>array(real types)).
Defined at: - Introduced in WordPress: 2.5.0
- Deprecated in WordPress: —
Description
Checks a MIME-Type against a list.If the `$wildcard_mime_types` parameter is a string, it must be comma separated
list. If the `$real_mime_types` is a string, it is also comma separated to
create the list.