get_post_format_slugs

Advertisement

Summery Summery

Retrieves the array of post format slugs.

Syntax Syntax

get_post_format_slugs()

Return Return

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

Source Source

File: wp-includes/post-formats.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.1.0 Introduced.

Advertisement

Leave a Reply