apply_filters( ‘wp_mime_type_icon’, string $icon, string $mime, int $post_id )

In this article

Filters the mime type icon.

Parameters

$iconstring
Path to the mime type icon.
$mimestring
Mime type.
$post_idint
Attachment ID. Will equal 0 if the function passed the mime type.

Source

return apply_filters( 'wp_mime_type_icon', $icon, $mime, $post_id );

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.