get_post_format_slugs(): string[]

Retrieves the array of post format slugs.


Return

string[] The array of post format slugs as both keys and values.


Top ↑

Source

File: wp-includes/post-formats.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
3.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.