wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



is_term › WordPress Function

Depuis2.3.0
Dépréciée3.0.0
is_term ( $term, $taxonomy = '', $parent = 0 )
Paramètres: (3)
  • (int|string) $term The term to check
    Requis: Oui
  • (string) $taxonomy The taxonomy name to use
    Requis: Non
    Défaut: (vide)
  • (int) $parent ID of parent term under which to confine the exists search.
    Requis: Non
    Défaut:
Voir:
Retourne:
  • (mixed) Get the term ID or term object, if exists.
Défini(e) dans:
Codex:

Check if Term exists.



Fonctions en relation: has_term, is_time, is_year, is_date, is_category

Source

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