apply_filters( 'wp_mime_type_icon', string $icon, string $mime, int $post_id )
- Since
- 2.1.0
Filters the mime type icon.
Compatibility
- WordPress
- since 2.1.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 1
wp-includes/post.php:7183wp_mime_type_icon()
Source code
* * @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 apply_filters( 'wp_mime_type_icon', $icon, $mime, $post_id );} /** * Checks for changed slugs for published post objects and save the old slug. * * The function is used when a post object of any type is updated,Changelog
Introduced in 2.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.