On this page
is_taxonomy( string $taxonomy ): bool
This function has been deprecated. Use taxonomy_exists() instead.
Checks that the taxonomy name exists.
Description
See also
Parameters
$taxonomystring Required-
Name of taxonomy object
Return
bool Whether the taxonomy exists.
Source
File: wp-includes/deprecated.php. View all references
function is_taxonomy( $taxonomy ) {
_deprecated_function( __FUNCTION__, '3.0.0', 'taxonomy_exists()' );
return taxonomy_exists( $taxonomy );
}
Related
Uses
| Uses | Description |
|---|---|
| taxonomy_exists() wp-includes/taxonomy.php | Determines whether the taxonomy name exists. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Use taxonomy_exists() |
| 2.3.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_taxonomy