get_post_mime_types()
Get default post mime types.
描述
返回值
(array) List of post mime types.
源代码
File: wp-includes/post.php
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 );
}
更新日志
Version | 描述 |
---|---|
2.9.0 | Introduced. |
相关函数
Uses
-
wp-includes/l10n.php:
_n_noop() -
wp-includes/l10n.php:
__() -
wp-includes/plugin.php:
apply_filters() -
wp-includes/post.php:
post_mime_types
Used By
-
wp-admin/includes/post.php:
wp_edit_attachments_query_vars() -
wp-admin/includes/media.php:
get_media_item() -
wp-admin/includes/post.php:
wp_edit_attachments_query() -
wp-includes/media.php:
wp_enqueue_media()
你可能对这些文章感兴趣:
- wordpress函数get_the_title()用法示例
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_terms()用法示例
- wordpress函数get_the_tags()用法示例
- wordpress函数get_the_taxonomies()用法示例
- wordpress函数get_the_permalink()用法示例
- wordpress函数get_the_password_form()用法示例
- wordpress函数get_the_posts_pagination()用法示例
- wordpress函数get_the_modified_date()用法示例
- wordpress函数get_the_modified_time()用法示例
- wordpress函数get_the_modified_author()用法示例
- wordpress函数get_the_guid()用法示例
- wordpress函数get_the_ID()用法示例
- wordpress函数get_the_excerpt()用法示例
如有疑问,请前往问答中心反馈!
反馈