wpseek.com
WordPress开发者和主题制作者的搜索引擎



get_post_format_slugs › WordPress Function

Since3.1.0
已弃用n/a
get_post_format_slugs ( 没有参数 )
返回:
  • (string[]) The array of post format slugs as both keys and values.
定义在:
文档:

Retrieves the array of post format slugs.



源码

function get_post_format_slugs() {
	$slugs = array_keys( get_post_format_strings() );
	return array_combine( $slugs, $slugs );
}