| [ 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/cover", 5 "title": "Cover", 6 "category": "media", 7 "description": "Add an image or video with a text overlay.", 8 "textdomain": "default", 9 "attributes": { 10 "url": { 11 "type": "string", 12 "role": "content" 13 }, 14 "useFeaturedImage": { 15 "type": "boolean", 16 "default": false 17 }, 18 "id": { 19 "type": "number" 20 }, 21 "alt": { 22 "type": "string", 23 "default": "" 24 }, 25 "hasParallax": { 26 "type": "boolean", 27 "default": false 28 }, 29 "isRepeated": { 30 "type": "boolean", 31 "default": false 32 }, 33 "dimRatio": { 34 "type": "number", 35 "default": 100 36 }, 37 "overlayColor": { 38 "type": "string" 39 }, 40 "customOverlayColor": { 41 "type": "string" 42 }, 43 "isUserOverlayColor": { 44 "type": "boolean" 45 }, 46 "backgroundType": { 47 "type": "string", 48 "default": "image" 49 }, 50 "focalPoint": { 51 "type": "object" 52 }, 53 "minHeight": { 54 "type": "number" 55 }, 56 "minHeightUnit": { 57 "type": "string" 58 }, 59 "gradient": { 60 "type": "string" 61 }, 62 "customGradient": { 63 "type": "string" 64 }, 65 "contentPosition": { 66 "type": "string" 67 }, 68 "isDark": { 69 "type": "boolean", 70 "default": true 71 }, 72 "templateLock": { 73 "type": [ "string", "boolean" ], 74 "enum": [ "all", "insert", "contentOnly", false ] 75 }, 76 "tagName": { 77 "type": "string", 78 "default": "div" 79 }, 80 "sizeSlug": { 81 "type": "string" 82 }, 83 "poster": { 84 "type": "string", 85 "source": "attribute", 86 "selector": "video", 87 "attribute": "poster" 88 }, 89 "allowedVideoProviders": { 90 "type": "array", 91 "default": [ 92 "youtube", 93 "vimeo", 94 "videopress", 95 "animoto", 96 "tiktok", 97 "wordpress-tv" 98 ] 99 } 100 }, 101 "usesContext": [ "postId", "postType" ], 102 "supports": { 103 "anchor": true, 104 "align": true, 105 "html": false, 106 "shadow": true, 107 "spacing": { 108 "padding": true, 109 "margin": [ "top", "bottom" ], 110 "blockGap": true, 111 "__experimentalDefaultControls": { 112 "padding": true, 113 "blockGap": true 114 } 115 }, 116 "__experimentalBorder": { 117 "color": true, 118 "radius": true, 119 "style": true, 120 "width": true, 121 "__experimentalDefaultControls": { 122 "color": true, 123 "radius": true, 124 "style": true, 125 "width": true 126 } 127 }, 128 "color": { 129 "heading": true, 130 "text": true, 131 "background": false, 132 "__experimentalSkipSerialization": [ "gradients" ], 133 "enableContrastChecker": false 134 }, 135 "dimensions": { 136 "aspectRatio": true 137 }, 138 "typography": { 139 "fontSize": true, 140 "lineHeight": true, 141 "__experimentalFontFamily": true, 142 "__experimentalFontWeight": true, 143 "__experimentalFontStyle": true, 144 "__experimentalTextTransform": true, 145 "__experimentalTextDecoration": true, 146 "__experimentalLetterSpacing": true, 147 "__experimentalDefaultControls": { 148 "fontSize": true 149 } 150 }, 151 "layout": { 152 "allowJustification": false 153 }, 154 "interactivity": { 155 "clientNavigation": true 156 }, 157 "filter": { 158 "duotone": true 159 }, 160 "allowedBlocks": true 161 }, 162 "selectors": { 163 "filter": { 164 "duotone": ".wp-block-cover > .wp-block-cover__image-background, .wp-block-cover > .wp-block-cover__video-background" 165 } 166 }, 167 "editorStyle": "wp-block-cover-editor", 168 "style": "wp-block-cover" 169 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Sat Jul 25 08:20:20 2026 | Cross-referenced by PHPXref |