apply_filters( 'wp_mime_type_icon', string $icon, string $mime, int $post_id )

Filters the mime type icon.

Parameters

$icon

(string) Path to the mime type icon.

$mime

(string) Mime type.

$post_id

(int) Attachment ID. Will equal 0 if the function passed the mime type.

Source

File: wp-includes/post.php

View on Trac

Changelog

Version Description
2.1.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_mime_type_icon