wpseek.com
A WordPress-centric search engine for devs and theme authors



get_post_format_string › WordPress Function

Since3.1.0
Deprecatedn/a
get_post_format_string ( $slug )
Parameters:
  • (string) $slug A post format slug.
    Required: Yes
Returns:
  • (string) The translated post format name.
Defined at:
Codex:

Returns a pretty, translated version of a post format slug



Source

function get_post_format_string( $slug ) {
	$strings = get_post_format_strings();
	if ( ! $slug ) {
		return $strings['standard'];
	} else {
		return ( isset( $strings[ $slug ] ) ) ? $strings[ $slug ] : '';
	}
}