post_mime_types filter-hookWP 2.5.0

Filters the default list of post mime types.

Usage

add_filter( 'post_mime_types', 'wp_kama_post_mime_types_filter' );

/**
 * Function for `post_mime_types` filter-hook.
 * 
 * @param array $post_mime_types Default list of post mime types.
 *
 * @return array
 */
function wp_kama_post_mime_types_filter( $post_mime_types ){

	// filter...
	return $post_mime_types;
}
$post_mime_types(array)
Default list of post mime types.

Changelog

Since 2.5.0 Introduced.

Where the hook is called

get_post_mime_types()
post_mime_types
wp-includes/post.php 3208
return apply_filters( 'post_mime_types', $post_mime_types );

Where the hook is used in WordPress

Usage not found.