wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_format_slugs › WordPress Function

Since3.1.0
Deprecatedn/a
get_post_format_slugs ( No parameters )
Returns:
  • (string[]) The array of post format slugs as both keys and values.
Defined at:
Codex:

Retrieves the array of post format slugs.



Source

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