wp_mime_type_icon filter-hookWP 2.1.0

Filters the mime type icon.

Usage

add_filter( 'wp_mime_type_icon', 'wp_kama_mime_type_icon_filter', 10, 3 );

/**
 * Function for `wp_mime_type_icon` filter-hook.
 * 
 * @param string $icon    Path to the mime type icon.
 * @param string $mime    Mime type.
 * @param int    $post_id Attachment ID. Will equal 0 if the function passed the mime type.
 *
 * @return string
 */
function wp_kama_mime_type_icon_filter( $icon, $mime, $post_id ){

	// filter...
	return $icon;
}
$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.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

wp_mime_type_icon()
wp_mime_type_icon
wp-includes/post.php 6868
return apply_filters( 'wp_mime_type_icon', $icon, $mime, $post_id );

Where the hook is used in WordPress

Usage not found.