is_term()
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. Use term_exists() instead.
Check if Term exists.
No Hooks.
Returns
Mixed. Get the term ID or term object, if exists.
Usage
is_term( $term, $taxonomy, $parent );
- $term(int|string) (required)
- The term to check.
- $taxonomy(string)
- The taxonomy name to use.
Default:'' - $parent(int)
- ID of parent term under which to confine the exists search.
Notes
- See: term_exists()
Changelog
| Since 2.3.0 | Introduced. |
| Deprecated since 3.0.0 | Use term_exists() |
is_term() is term code WP 6.9.1
function is_term( $term, $taxonomy = '', $parent = 0 ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
return term_exists( $term, $taxonomy, $parent );
}