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.


Top ↑

Parameters

$type_links

(string[])An array of list items containing mime type link HTML.


Top ↑

Source

File: wp-admin/includes/media.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More