wp_mime_type_icon filter-hook . WP 2.1.0
Filters the mime type icon.
Usage
add_filter( 'wp_mime_type_icon', 'filter_function_name_8256', 10, 3 ); function filter_function_name_8256( $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.
Where the hook is called
wp-includes/post.php 5662
return apply_filters( 'wp_mime_type_icon', $icon, $mime, $post_id );