Get terms on content
get_content_termsRetrieve all taxonomy terms assigned to a content item, grouped by taxonomy and resolved to full term objects. Specify content ID and type to get structured term data.
Instructions
Get every taxonomy term assigned to one content item, grouped by taxonomy and resolved to full term objects rather than bare IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Content type of that ID. | post |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| content_id | Yes | The content item to inspect. |