get_post_format_slugs()
最后更新于:2021-11-26 22:31:28
get_post_format_slugs()Retrieves the array of post format slugs.
响应
(string[]) The array of post format slugs as both keys and values.
源文件
文件: gc-includes/post-formats.php
function get_post_format_slugs() {
$slugs = array_keys( get_post_format_strings() );
return array_combine( $slugs, $slugs );
}