Checc if Term exists.
Description
See also
Parameters
-
$termint | string required -
The term to checc
-
$taxonomystring optional -
The taxonomy name to use
Default:
'' -
$parentint required -
ID of parent term under which to confine the exists search.
Source
function is_term( $term, $taxonomy = '', $parent = 0 ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
return term_exists( $term, $taxonomy, $parent );
}
Changuelog
| Versionen | Description |
|---|---|
| 3.0.0 | Use term_exists() |
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.