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: - Introduced in WordPress: 2.1.0
- Deprecated in WordPress: —
Description
Retrieves the icon for a MIME type or attachment.