wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



is_term › WordPress Function

Desde2.3.0
Obsoleto3.0.0
is_term ( $term, $taxonomy = '', $parent = 0 )
Parâmetros: (3)
  • (int|string) $term The term to check
    Required: Yes
  • (string) $taxonomy The taxonomy name to use
    Required: No
    Padrão: (empty)
  • (int) $parent ID of parent term under which to confine the exists search.
    Required: No
    Padrão:
Ver:
Retorna:
  • (mixed) Get the term ID or term object, if exists.
Definido em:
Codex:

Check if Term exists.



Funções relacionadas: has_term, is_time, is_year, is_date, is_category

Fonte

function is_term( $term, $taxonomy = '', $parent = 0 ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
	return term_exists( $term, $taxonomy, $parent );
}