Retrieves an array of post format slugs.

Signature

get_post_format_slugs()

Return

(array) The array of post format slugs.

Source

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

Link here