The is_taxonomy() WordPress PHP function checks if the specified taxonomy name exists.
Usage
$is_taxonomy_exists = is_taxonomy( 'taxonomy_name' );
Parameters
- $taxonomy (string) – Required. Name of the taxonomy object to check.
More information
See WordPress Developer Resources: is_taxonomy()
Examples
Check if a taxonomy exists
Check if