wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_post_format_get_term › WordPress Function

Da3.1.0
Deprecaton/a
_post_format_get_term ( $term )
Accedi:
  • private
Parametri:
  • (object) $term
    Richiesto:
Ritorna:
  • (object)
Definito a:
Codex:

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



Sorgenti

function _post_format_get_term( $term ) {
	if ( isset( $term->slug ) ) {
		$term->name = get_post_format_string( str_replace( 'post-format-', '', $term->slug ) );
	}
	return $term;
}