Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_post_format_string [ WordPress Function ]

get_post_format_string ( $slug )
Parameters:
  • (string) $slug A post format slug
Returns:
  • (string) The translated post format name
Defined at:



Returns a pretty, translated version of a post format slug

Source


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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics