Switch language

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




_post_format_get_term [ WordPress Function ]

_post_format_get_term ( $term )
Access:
  • private
Defined at:



Remove the post format prefix from the name property of the term object created by get_term().

Source


<?php
function _post_format_get_term$term ) {
    if ( isset( 
$term->slug ) ) {
        
$term->name get_post_format_stringstr_replace'post-format-'''$term->slug ) );
    }
    return 
$term;
}
?>

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