函数原型
get_post_format_slugs(): string[]
函数描述
Retrieves the array of post format slugs.
是否弃用
未弃用
函数参数
无
函数返回值
string[] The array of post format slugs as both keys and values.
函数位置
File: wp-includes/post-formats.php.
函数源码
function get_post_format_slugs() {
$slugs = array_keys( get_post_format_strings() );
return array_combine( $slugs, $slugs );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |

