Codex

Function Reference/get post format string

Contents

Description

Returns a pretty, translated version of a post format slug. This can be used anywhere if slug of a post format is provided.

Usage

<?php $pretty_format get_post_format_string($slug); ?>

Parameters

$slug
(string) (Optional) slug of the post format.
Default: 'standard'


Changelog

Source File

get_post_format_string() is located in wp-includes/post.php.

Post Formats: set_post_format(), get_post_format(), has_post_format()

See also index of Function Reference and index of Template Tags.