is_term

Definition:
function is_term( $term, $taxonomy = '', $parent = 0 ) {}

Check if Term exists.

Parameters

  • int|string $term: The term to check
  • string $taxonomy: The taxonomy name to use
  • int $parent: ID of parent term under which to confine the exists search.

Return values

returns:Get the term id or Term Object, if exists.

Source code

function is_term( $term, $taxonomy = '', $parent = 0 ) {

	_deprecated_function( __FUNCTION__, '3.0', 'term_exists()' );

	return term_exists( $term, $taxonomy, $parent );

}

2207

No comments yet... Be the first to leave a reply!

Leave a comment