get_post_format_slugs()WP 3.1.0

Retrieves the array of post format slugs.

Хуков нет.

Возвращает

Строку[]. The array of post format slugs as both keys and values.

Использование

get_post_format_slugs();

Список изменений

С версии 3.1.0 Введена.

Код get_post_format_slugs() WP 6.4.3

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