wp taxonomy get
Overview
Retrieve all details for a single registered taxonomy — including its labels, capabilities, REST API support, and the post types it applies to.
What It Does
wp taxonomy get calls get_taxonomy() and displays every property of the registered taxonomy object.
Syntax
wp taxonomy get <taxonomy> [OPTIONS]
Basic Usage
Get full details for a taxonomy
wp taxonomy get category
Get a specific field
wp taxonomy get category --field=hierarchical
Get as JSON
wp taxonomy get product_cat --format=json
Real-World Scenarios
Check if a taxonomy is publicly queryable
IS_PUBLIC=$(wp taxonomy get genre --field=public)
echo "Genre is public: $IS_PUBLIC"
Check which post types a taxonomy applies to
wp taxonomy get product_cat --field=object_type
Quick Reference
wp taxonomy get <taxonomy> # All details
wp taxonomy get <taxonomy> --field=public # Single field
wp taxonomy get <taxonomy> --format=json
Next Steps
wp taxonomy list— list all registered taxonomies.wp term list— list terms within this taxonomy.