[ 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          "style"
  60      ],
  61      "supports": {
  62          "reusable": false,
  63          "html": false,
  64          "typography": {
  65              "fontSize": true,
  66              "lineHeight": true,
  67              "__experimentalFontFamily": true,
  68              "__experimentalFontWeight": true,
  69              "__experimentalFontStyle": true,
  70              "__experimentalTextTransform": true,
  71              "__experimentalTextDecoration": true,
  72              "__experimentalLetterSpacing": true,
  73              "__experimentalDefaultControls": {
  74                  "fontSize": true
  75              }
  76          },
  77          "interactivity": {
  78              "clientNavigation": true
  79          }
  80      },
  81      "editorStyle": "wp-block-navigation-submenu-editor",
  82      "style": "wp-block-navigation-submenu"
  83  }


Generated : Thu May 7 08:20:02 2026 Cross-referenced by PHPXref