wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



get_post_format_slugs › WordPress Function

Desde3.1.0
Obsoleton/a
get_post_format_slugs ( Sem parâmetros )
Retorna:
  • (string[]) The array of post format slugs as both keys and values.
Definido em:
Codex:

Retrieves the array of post format slugs.



Fonte

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