A WordPress-centric search engine for devs and theme authors



get_post_mime_types ›

Since2.9.0
Deprecatedn/a
get_post_mime_types ( No parameters )
Returns:
  • (array) List of post mime types.
Defined at:
Codex:

Get default post mime types.



Source

function get_post_mime_types() {
	$post_mime_types = array(   //	array( adj, noun )
		'image' => array( __( 'Images' ), __( 'Manage Images' ), _n_noop( 'Image <span class="count">(%s)</span>', 'Images <span class="count">(%s)</span>' ) ),
		'audio' => array( __( 'Audio' ), __( 'Manage Audio' ), _n_noop( 'Audio <span class="count">(%s)</span>', 'Audio <span class="count">(%s)</span>' ) ),
		'video' => array( __( 'Video' ), __( 'Manage Video' ), _n_noop( 'Video <span class="count">(%s)</span>', 'Video <span class="count">(%s)</span>' ) ),
	);

	/**
	 * Filters the default list of post mime types.
	 *
	 * @since 2.5.0
	 *
	 * @param array $post_mime_types Default list of post mime types.
	 */
	return apply_filters( 'post_mime_types', $post_mime_types );
}