[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/navigation-submenu/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/navigation-submenu",
   5      "title": "Submenu",
   6      "category": "design",
   7      "parent": [ "core/navigation" ],
   8      "description": "Add a submenu to your navigation.",
   9      "textdomain": "default",
  10      "attributes": {
  11          "label": {
  12              "type": "string",
  13              "role": "content"
  14          },
  15          "type": {
  16              "type": "string"
  17          },
  18          "description": {
  19              "type": "string"
  20          },
  21          "rel": {
  22              "type": "string"
  23          },
  24          "id": {
  25              "type": "number"
  26          },
  27          "opensInNewTab": {
  28              "type": "boolean",
  29              "default": false
  30          },
  31          "url": {
  32              "type": "string",
  33              "role": "content"
  34          },
  35          "title": {
  36              "type": "string"
  37          },
  38          "kind": {
  39              "type": "string"
  40          },
  41          "isTopLevelItem": {
  42              "type": "boolean"
  43          }
  44      },
  45      "usesContext": [
  46          "textColor",
  47          "customTextColor",
  48          "backgroundColor",
  49          "customBackgroundColor",
  50          "overlayTextColor",
  51          "customOverlayTextColor",
  52          "overlayBackgroundColor",
  53          "customOverlayBackgroundColor",
  54          "fontSize",
  55          "customFontSize",
  56          "showSubmenuIcon",
  57          "maxNestingLevel",
  58          "openSubmenusOnClick",
  59          "submenuVisibility",
  60          "style"
  61      ],
  62      "supports": {
  63          "anchor": true,
  64          "reusable": false,
  65          "html": false,
  66          "typography": {
  67              "fontSize": true,
  68              "lineHeight": true,
  69              "__experimentalFontFamily": true,
  70              "__experimentalFontWeight": true,
  71              "__experimentalFontStyle": true,
  72              "__experimentalTextTransform": true,
  73              "__experimentalTextDecoration": true,
  74              "__experimentalLetterSpacing": true,
  75              "__experimentalDefaultControls": {
  76                  "fontSize": true
  77              }
  78          },
  79          "interactivity": {
  80              "clientNavigation": true
  81          }
  82      },
  83      "editorStyle": "wp-block-navigation-submenu-editor",
  84      "style": "wp-block-navigation-submenu"
  85  }


Generated : Wed Jun 17 08:20:09 2026 Cross-referenced by PHPXref