wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_post_format_string › WordPress Function

Od3.1.0
Przestarzałyn/a
get_post_format_string ( $slug )
Parametry:
  • (string) $slug A post format slug.
    Wymagane: Tak
Powrót:
  • (string) The translated post format name.
Zdefiniowane na:
Codex:

Returns a pretty, translated version of a post format slug



Źródło

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