media_upload_mime_type_links
Filter HookDescription
Filters the media upload mime type list items. Returned values should begin with an `Hook Information
File Location |
wp-admin/includes/media.php
View on GitHub
|
Hook Type | Filter |
Line Number | 2827 |
Hook Parameters
Type | Name | Description |
---|---|---|
string[]
|
$type_links
|
An array of list items containing mime type link HTML. |
Usage Examples
Basic Usage
<?php
// Hook into media_upload_mime_type_links
add_filter('media_upload_mime_type_links', 'my_custom_filter', 10, 1);
function my_custom_filter($type_links) {
// Your custom filtering logic here
return $type_links;
}
Source Code Context
wp-admin/includes/media.php:2827
- How this hook is used in WordPress core
<?php
2822 *
2823 * @since 3.1.0
2824 *
2825 * @param string[] $type_links An array of list items containing mime type link HTML.
2826 */
2827 echo implode( ' | </li>', apply_filters( 'media_upload_mime_type_links', $type_links ) ) . '</li>';
2828 unset( $type_links );
2829 ?>
2830 </ul>
2831
2832 <div class="tablenav">
PHP Documentation
<?php
/**
* Filters the media upload mime type list items.
*
* Returned values should begin with an `<li>` tag.
*
* @since 3.1.0
*
* @param string[] $type_links An array of list items containing mime type link HTML.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-admin/includes/media.php
Related Hooks
Related hooks will be displayed here in future updates.