wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_post_format_string › WordPress Function

Depuis3.1.0
Dépréciéen/a
get_post_format_string ( $slug )
Paramètres:
  • (string) $slug A post format slug.
    Requis: Oui
Retourne:
  • (string) The translated post format name.
Défini(e) dans:
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 ] : '';
	}
}