Core Function
View Source on Trac ↗ wp_mime_type_icon()
wp_mime_type_icon( mixed $mime = 0, mixed $preferred_ext = '.png' ) Retrieves the icon for a MIME type or attachment.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | int) $mime MIME type or attachment ID. Required |
| $preferred_ext string | File format to prefer in return. Default '.png'. |
Return Value
((string)
| false) Icon, false otherwise.
Function Information
Since Version
2.1.0
Source File
wp-includes/post.php
Advertisement