wpseek.com
A WordPress-centric search engine for devs and theme authors



is_term › WordPress Function

Since2.3.0
Deprecated3.0.0
is_term ( $term, $taxonomy = '', $parent = 0 )
Parameters: (3)
  • (int|string) $term The term to check
    Required: Yes
  • (string) $taxonomy The taxonomy name to use
    Required: No
    Default: (empty)
  • (int) $parent ID of parent term under which to confine the exists search.
    Required: No
    Default:
See:
Returns:
  • (mixed) Get the term ID or term object, if exists.
Defined at:
Codex:

Check if Term exists.



Related Functions: 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 );
}