wp_mime_type_icon


wp_mime_type_icon ( $mime = 0, $preferred_ext = '.png' )

Parameters:
  • (string|int) mime MIME type or attachment ID.
  • (string) preferred_ext File format to prefer in return. Default '.png'.
Returns:
  • (string|false) Icon, false otherwise.
Defined at:
Change Log:
  • 6: .

Description

Retrieves the icon for a MIME type or attachment.

Related Functions

wp_site_icon, wp_get_mime_types, wp_match_mime_types, wp_post_mime_type_where, wp_image_editor

Top Google Results

User discussions

wpseek mobile