get_post_format_string() – Returns a pretty, translated version of a post format slug
You appear to be a bot. Output may be restricted
Description
Returns a pretty, translated version of a post format slug
Usage
$string = get_post_format_string( $slug );
Parameters
- $slug
- ( string ) required – A post format slug.
Returns
string The translated post format name.
Source
File name: wordpress/wp-includes/post-formats.php
Lines:
1 to 8 of 8
function get_post_format_string( $slug ) { $strings = get_post_format_strings(); if ( ! $slug ) { return $strings['standard']; } else { return ( isset( $strings[ $slug ] ) ) ? $strings[ $slug ] : ''; } }