WordPress at a glance
function is not described

get_post_format_slugs() WP 3.1.0

Retrieves the array of post format slugs.

No Hooks.

Return

Array. The array of post format slugs as both keys and values.

Usage

get_post_format_slugs();

Code of get post format slugs: wp-includes/post-formats.php VER 5.1.1

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