[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/avatar",
   5      "title": "Avatar",
   6      "category": "theme",
   7      "description": "Add a user’s avatar.",
   8      "textdomain": "default",
   9      "attributes": {
  10          "userId": {
  11              "type": "number"
  12          },
  13          "size": {
  14              "type": "number",
  15              "default": 96
  16          },
  17          "isLink": {
  18              "type": "boolean",
  19              "default": false
  20          },
  21          "linkTarget": {
  22              "type": "string",
  23              "default": "_self"
  24          }
  25      },
  26      "usesContext": [ "postType", "postId", "commentId" ],
  27      "supports": {
  28          "anchor": true,
  29          "html": false,
  30          "align": true,
  31          "alignWide": false,
  32          "spacing": {
  33              "margin": true,
  34              "padding": true,
  35              "__experimentalDefaultControls": {
  36                  "margin": false,
  37                  "padding": false
  38              }
  39          },
  40          "__experimentalBorder": {
  41              "__experimentalSkipSerialization": true,
  42              "radius": true,
  43              "width": true,
  44              "color": true,
  45              "style": true,
  46              "__experimentalDefaultControls": {
  47                  "radius": true
  48              }
  49          },
  50          "color": {
  51              "text": false,
  52              "background": false
  53          },
  54          "filter": {
  55              "duotone": true
  56          },
  57          "interactivity": {
  58              "clientNavigation": true
  59          }
  60      },
  61      "selectors": {
  62          "border": ".wp-block-avatar img",
  63          "filter": {
  64              "duotone": ".wp-block-avatar img"
  65          }
  66      },
  67      "editorStyle": "wp-block-avatar-editor",
  68      "style": "wp-block-avatar"
  69  }


Generated : Mon Jul 27 08:20:18 2026 Cross-referenced by PHPXref