Skip to content

Add Term Details to Post Response

Choose a tag to compare

@misfist misfist released this 27 Oct 18:31
· 360 commits to main since this release

Added general function to modify taxonomy response for all registered taxonomies returned by REST API (/wp-json/wp/v2/posts). Format:

"{taxonomy}": [
  {
    "term_id": {int},
    "name": {string},
    "slug": {string},
    "term_group": {int},
    "term_taxonomy_id": {int},
    "taxonomy": {string},
    "description": {string},
    "parent": {int},
    "count": {int},
    "filter": {string}
  },
  {
    "term_id": {int},
    "name": {string},
    "slug": {string},
    "term_group": {int},
    "term_taxonomy_id": {int},
    "taxonomy": {string},
    "description": {string},
    "parent": {int},
    "count": {int},
    "filter": {string}
  }
]