post_mime_types WordPress Filter Hook

The post_mime_types hook allows you to modify the default list of post mime types. This can be useful if you want to add support for a new type of file or override the default icon for an existing type.

apply_filters( 'post_mime_types', array $post_mime_types ) #

Filters the default list of post mime types.


Parameters

$post_mime_types

(array)Default list of post mime types.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.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