get_post_format_string( string $slug )
Returns a pretty, translated version of a post format slug
描述
参数
- $slug
-
(string)
(Required)
A post format slug.
返回值
(string) The translated post format name.
源代码
File: wp-includes/post-formats.php
function get_post_format_string( $slug ) {
$strings = get_post_format_strings();
if ( !$slug )
return $strings['standard'];
else
return ( isset( $strings[$slug] ) ) ? $strings[$slug] : '';
}
更新日志
Version | 描述 |
---|---|
3.1.0 | Introduced. |
相关函数
Uses
-
wp-includes/post-formats.php:
get_post_format_strings()
Used By
-
wp-admin/includes/class-wp-posts-list-table.php:
WP_Posts_List_Table::column_title() -
wp-admin/includes/class-wp-press-this.php:
WP_Press_This::html() -
wp-admin/includes/class-wp-press-this.php:
WP_Press_This::post_formats_html() -
wp-admin/includes/meta-boxes.php:
post_format_meta_box() -
wp-admin/includes/class-wp-posts-list-table.php:
WP_Posts_List_Table::inline_edit() -
wp-includes/post-formats.php:
_post_format_get_term() -
wp-includes/post-formats.php:
_post_format_get_terms() -
wp-includes/post-formats.php:
_post_format_wp_get_object_terms()
Show 3 more used by
Hide more used by
你可能对这些文章感兴趣:
- wordpress函数get_the_posts_navigation()用法示例
- wordpress函数get_the_title()用法示例
- 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()用法示例
如有疑问,请前往问答中心反馈!
反馈