| [ 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", "postId", "postType" ], 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 "dynamicContent": { 65 "type": "object" 66 }, 67 "navigationButtonType": { 68 "type": "string", 69 "default": "icon", 70 "enum": [ "icon", "text", "both" ] 71 }, 72 "shortCodeTransforms": { 73 "type": "array", 74 "items": { 75 "type": "object" 76 }, 77 "default": [] 78 }, 79 "columns": { 80 "type": "number", 81 "minimum": 1, 82 "maximum": 8 83 }, 84 "caption": { 85 "type": "rich-text", 86 "source": "rich-text", 87 "selector": ".blocks-gallery-caption", 88 "role": "content" 89 }, 90 "imageCrop": { 91 "type": "boolean", 92 "default": true 93 }, 94 "randomOrder": { 95 "type": "boolean", 96 "default": false 97 }, 98 "fixedHeight": { 99 "type": "boolean", 100 "default": true 101 }, 102 "linkTarget": { 103 "type": "string" 104 }, 105 "linkTo": { 106 "type": "string" 107 }, 108 "sizeSlug": { 109 "type": "string", 110 "default": "large" 111 }, 112 "allowResize": { 113 "type": "boolean", 114 "default": false 115 }, 116 "aspectRatio": { 117 "type": "string", 118 "default": "auto" 119 } 120 }, 121 "providesContext": { 122 "allowResize": "allowResize", 123 "imageCrop": "imageCrop", 124 "fixedHeight": "fixedHeight", 125 "navigationButtonType": "navigationButtonType" 126 }, 127 "supports": { 128 "anchor": true, 129 "align": true, 130 "__experimentalBorder": { 131 "radius": true, 132 "color": true, 133 "width": true, 134 "style": true, 135 "__experimentalDefaultControls": { 136 "color": true, 137 "radius": true 138 } 139 }, 140 "html": false, 141 "units": [ "px", "em", "rem", "vh", "vw" ], 142 "spacing": { 143 "margin": true, 144 "padding": true, 145 "blockGap": { 146 "sides": [ "horizontal", "vertical" ], 147 "__experimentalDefault": "var( --wp--style--gallery-gap-default, var( --gallery-block--gutter-size, var( --wp--style--block-gap, 0.5em ) ) )" 148 }, 149 "__experimentalDefaultControls": { 150 "blockGap": true, 151 "margin": false, 152 "padding": false 153 } 154 }, 155 "color": { 156 "text": false, 157 "background": true, 158 "gradients": true 159 }, 160 "layout": { 161 "allowSwitching": false, 162 "allowInheriting": false, 163 "allowEditing": false, 164 "default": { 165 "type": "flex" 166 } 167 }, 168 "interactivity": { 169 "clientNavigation": true 170 }, 171 "listView": true 172 }, 173 "editorStyle": "wp-block-gallery-editor", 174 "style": "wp-block-gallery" 175 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sun Jul 26 08:20:18 2026 | Cross-referenced by PHPXref |