[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/image",
   5      "title": "Image",
   6      "category": "media",
   7      "usesContext": [
   8          "allowResize",
   9          "imageCrop",
  10          "fixedHeight",
  11          "navigationButtonType",
  12          "postId",
  13          "postType",
  14          "queryId",
  15          "galleryId"
  16      ],
  17      "description": "Insert an image to make a visual statement.",
  18      "keywords": [ "img", "photo", "picture" ],
  19      "textdomain": "default",
  20      "attributes": {
  21          "blob": {
  22              "type": "string",
  23              "role": "local"
  24          },
  25          "url": {
  26              "type": "string",
  27              "source": "attribute",
  28              "selector": "img",
  29              "attribute": "src",
  30              "role": "content"
  31          },
  32          "alt": {
  33              "type": "string",
  34              "source": "attribute",
  35              "selector": "img",
  36              "attribute": "alt",
  37              "default": "",
  38              "role": "content"
  39          },
  40          "caption": {
  41              "type": "rich-text",
  42              "source": "rich-text",
  43              "selector": "figcaption",
  44              "role": "content"
  45          },
  46          "lightbox": {
  47              "type": "object",
  48              "enabled": {
  49                  "type": "boolean"
  50              }
  51          },
  52          "title": {
  53              "type": "string",
  54              "source": "attribute",
  55              "selector": "img",
  56              "attribute": "title",
  57              "role": "content"
  58          },
  59          "href": {
  60              "type": "string",
  61              "source": "attribute",
  62              "selector": "figure > a",
  63              "attribute": "href",
  64              "role": "content"
  65          },
  66          "rel": {
  67              "type": "string",
  68              "source": "attribute",
  69              "selector": "figure > a",
  70              "attribute": "rel"
  71          },
  72          "linkClass": {
  73              "type": "string",
  74              "source": "attribute",
  75              "selector": "figure > a",
  76              "attribute": "class"
  77          },
  78          "id": {
  79              "type": "number",
  80              "role": "content"
  81          },
  82          "width": {
  83              "type": "string"
  84          },
  85          "height": {
  86              "type": "string"
  87          },
  88          "aspectRatio": {
  89              "type": "string"
  90          },
  91          "scale": {
  92              "type": "string"
  93          },
  94          "focalPoint": {
  95              "type": "object"
  96          },
  97          "sizeSlug": {
  98              "type": "string"
  99          },
 100          "linkDestination": {
 101              "type": "string"
 102          },
 103          "linkTarget": {
 104              "type": "string",
 105              "source": "attribute",
 106              "selector": "figure > a",
 107              "attribute": "target"
 108          }
 109      },
 110      "supports": {
 111          "interactivity": true,
 112          "align": [ "left", "center", "right", "wide", "full" ],
 113          "anchor": true,
 114          "color": {
 115              "text": false,
 116              "background": false
 117          },
 118          "filter": {
 119              "duotone": true
 120          },
 121          "spacing": {
 122              "margin": true
 123          },
 124          "__experimentalBorder": {
 125              "color": true,
 126              "radius": true,
 127              "width": true,
 128              "__experimentalSkipSerialization": true,
 129              "__experimentalDefaultControls": {
 130                  "color": true,
 131                  "radius": true,
 132                  "width": true
 133              }
 134          },
 135          "shadow": {
 136              "__experimentalSkipSerialization": true
 137          }
 138      },
 139      "selectors": {
 140          "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 141          "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
 142          "filter": {
 143              "duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
 144          }
 145      },
 146      "styles": [
 147          {
 148              "name": "default",
 149              "label": "Default",
 150              "isDefault": true
 151          },
 152          { "name": "rounded", "label": "Rounded" }
 153      ],
 154      "editorStyle": "wp-block-image-editor",
 155      "style": "wp-block-image"
 156  }


Generated : Mon Jun 15 08:20:09 2026 Cross-referenced by PHPXref