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



is_term › WordPress Function

Da2.3.0
Deprecato3.0.0
is_term ( $term, $taxonomy = '', $parent = 0 )
Parametri: (3)
  • (int|string) $term The term to check
    Richiesto:
  • (string) $taxonomy The taxonomy name to use
    Richiesto: No
    Default: (vuoto)
  • (int) $parent ID of parent term under which to confine the exists search.
    Richiesto: No
    Default:
Vedi:
Ritorna:
  • (mixed) Get the term ID or term object, if exists.
Definito a:
Codex:

Check if Term exists.



Funzioni correlate: has_term, is_time, is_year, is_date, is_category

Sorgenti

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