WPDev.one
Core Function
View Source on Trac ↗

get_post_format_string()

get_post_format_string( mixed $slug )

Returns a pretty, translated version of a post format slug

Parameters 1 required

Name / Type Description
$slug
string

A post format slug.

Required

Return Value

(string)
The translated post format name.

Function Information

Since Version
3.1.0
Source File
wp-includes/post-formats.php
Advertisement