Check if Term exists.
$termint|stringrequired
$taxonomystringoptional
Default:''
$parentintrequired
function is_term( $term, $taxonomy = '', $parent = 0 ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'term_exists()' );
return term_exists( $term, $taxonomy, $parent );
}
| Version | Description |
|---|---|
| 3.0.0 | Use term_exists() |
| 2.3.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_term