Using WordPress ‘is_taxonomy()’ PHP function

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

Tagged in

Leave a Comment

Your email address will not be published. Required fields are marked *