WordPress · Schema

TermInput

Input schema for creating or updating a term

CMSContent ManagementOpen SourceWordPress

Properties

Name Type Description
name string HTML title for the term
description string HTML description of the term
slug string An alphanumeric identifier
parent integer The parent term ID
View JSON Schema on GitHub

JSON Schema

wordpress-term-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wordpress/refs/heads/main/json-schema/wordpress-term-input-schema.json",
  "title": "TermInput",
  "description": "Input schema for creating or updating a term",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "HTML title for the term",
      "example": "Technology"
    },
    "description": {
      "type": "string",
      "description": "HTML description of the term",
      "example": "Technology-related posts"
    },
    "slug": {
      "type": "string",
      "description": "An alphanumeric identifier",
      "example": "technology"
    },
    "parent": {
      "type": "integer",
      "description": "The parent term ID",
      "example": 0
    }
  },
  "required": [
    "name"
  ]
}