wp_match_mime_types


wp_match_mime_types ( $wildcard_mime_types, $real_mime_types )

Parameters:
  • (string|array) $wildcard_mime_types Mime types, e.g. audio/mpeg or image (same as image/*) or flash (same as *flash*).
  • (string|array) $real_mime_types Real post mime type values.
Returns:
  • (array) array(wildcard=>array(real types)).
Defined at:

Description

Check 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_post_mime_type_where, wp_mime_type_icon, sanitize_mime_type, _wp_batch_split_terms

Top Google Results

User discussions

wpseek mobile