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:

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.

Related Functions

wp_get_mime_types, _wp_batch_update_comment_type, wp_mime_type_icon, wp_post_mime_type_where, sanitize_mime_type

Top Google Results

User discussions

wpseek mobile