media_upload_mime_type_links WordPress Filter Hook
The media_upload_mime_type_links hook is called when outputting the list of available media types in the Media Library. It allows you to add custom links to each media type, which can be used to filter the media library by type.
apply_filters( 'media_upload_mime_type_links', string[] $type_links ) #
Filters the media upload mime type list items.
Description
Returned values should begin with an <li>
tag.
Parameters
- $type_links
(string[])An array of list items containing mime type link HTML.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |