get_post_format_string()
get_post_format_string( string $slug )
返回一个漂亮的翻译后格式段塞
Returns a pretty, translated version of a post format slug
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$slug | (string) | 必需 | 后置格式的子弹。 |
返回(Return)
(string)翻译后的格式名。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.1.0 | wp-includes/post-formats.php:131 | 6 | 1 function |
get_post_format_string() 为WP2原创文章,链接:https://www.wp2.cn/functions/get_post_format_string/