| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 { 2 "$schema": "https://schemas.wp.org/trunk/block.json", 3 "apiVersion": 3, 4 "name": "core/gallery", 5 "title": "Gallery", 6 "category": "media", 7 "usesContext": [ "galleryId" ], 8 "allowedBlocks": [ "core/image" ], 9 "description": "Display multiple images in a rich gallery.", 10 "keywords": [ "images", "photos" ], 11 "textdomain": "default", 12 "attributes": { 13 "images": { 14 "type": "array", 15 "default": [], 16 "source": "query", 17 "selector": ".blocks-gallery-item", 18 "query": { 19 "url": { 20 "type": "string", 21 "source": "attribute", 22 "selector": "img", 23 "attribute": "src" 24 }, 25 "fullUrl": { 26 "type": "string", 27 "source": "attribute", 28 "selector": "img", 29 "attribute": "data-full-url" 30 }, 31 "link": { 32 "type": "string", 33 "source": "attribute", 34 "selector": "img", 35 "attribute": "data-link" 36 }, 37 "alt": { 38 "type": "string", 39 "source": "attribute", 40 "selector": "img", 41 "attribute": "alt", 42 "default": "" 43 }, 44 "id": { 45 "type": "string", 46 "source": "attribute", 47 "selector": "img", 48 "attribute": "data-id" 49 }, 50 "caption": { 51 "type": "rich-text", 52 "source": "rich-text", 53 "selector": ".blocks-gallery-item__caption" 54 } 55 } 56 }, 57 "ids": { 58 "type": "array", 59 "items": { 60 "type": "number" 61 }, 62 "default": [] 63 }, 64 "navigationButtonType": { 65 "type": "string", 66 "default": "icon", 67 "enum": [ "icon", "text", "both" ] 68 }, 69 "shortCodeTransforms": { 70 "type": "array", 71 "items": { 72 "type": "object" 73 }, 74 "default": [] 75 }, 76 "columns": { 77 "type": "number", 78 "minimum": 1, 79 "maximum": 8 80 }, 81 "caption": { 82 "type": "rich-text", 83 "source": "rich-text", 84 "selector": ".blocks-gallery-caption", 85 "role": "content" 86 }, 87 "imageCrop": { 88 "type": "boolean", 89 "default": true 90 }, 91 "randomOrder": { 92 "type": "boolean", 93 "default": false 94 }, 95 "fixedHeight": { 96 "type": "boolean", 97 "default": true 98 }, 99 "linkTarget": { 100 "type": "string" 101 }, 102 "linkTo": { 103 "type": "string" 104 }, 105 "sizeSlug": { 106 "type": "string", 107 "default": "large" 108 }, 109 "allowResize": { 110 "type": "boolean", 111 "default": false 112 }, 113 "aspectRatio": { 114 "type": "string", 115 "default": "auto" 116 } 117 }, 118 "providesContext": { 119 "allowResize": "allowResize", 120 "imageCrop": "imageCrop", 121 "fixedHeight": "fixedHeight", 122 "navigationButtonType": "navigationButtonType" 123 }, 124 "supports": { 125 "anchor": true, 126 "align": true, 127 "__experimentalBorder": { 128 "radius": true, 129 "color": true, 130 "width": true, 131 "style": true, 132 "__experimentalDefaultControls": { 133 "color": true, 134 "radius": true 135 } 136 }, 137 "html": false, 138 "units": [ "px", "em", "rem", "vh", "vw" ], 139 "spacing": { 140 "margin": true, 141 "padding": true, 142 "blockGap": [ "horizontal", "vertical" ], 143 "__experimentalSkipSerialization": [ "blockGap" ], 144 "__experimentalDefaultControls": { 145 "blockGap": true, 146 "margin": false, 147 "padding": false 148 } 149 }, 150 "color": { 151 "text": false, 152 "background": true, 153 "gradients": true 154 }, 155 "layout": { 156 "allowSwitching": false, 157 "allowInheriting": false, 158 "allowEditing": false, 159 "default": { 160 "type": "flex" 161 } 162 }, 163 "interactivity": { 164 "clientNavigation": true 165 }, 166 "listView": true 167 }, 168 "editorStyle": "wp-block-gallery-editor", 169 "style": "wp-block-gallery" 170 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Mon Jun 15 08:20:09 2026 | Cross-referenced by PHPXref |