[ 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/post-featured-image", 5 "title": "Featured Image", 6 "category": "theme", 7 "description": "Display a post's featured image.", 8 "textdomain": "default", 9 "attributes": { 10 "isLink": { 11 "type": "boolean", 12 "default": false, 13 "role": "content" 14 }, 15 "aspectRatio": { 16 "type": "string" 17 }, 18 "width": { 19 "type": "string" 20 }, 21 "height": { 22 "type": "string" 23 }, 24 "scale": { 25 "type": "string", 26 "default": "cover" 27 }, 28 "sizeSlug": { 29 "type": "string" 30 }, 31 "rel": { 32 "type": "string", 33 "attribute": "rel", 34 "default": "", 35 "role": "content" 36 }, 37 "linkTarget": { 38 "type": "string", 39 "default": "_self", 40 "role": "content" 41 }, 42 "overlayColor": { 43 "type": "string" 44 }, 45 "customOverlayColor": { 46 "type": "string" 47 }, 48 "dimRatio": { 49 "type": "number", 50 "default": 0 51 }, 52 "gradient": { 53 "type": "string" 54 }, 55 "customGradient": { 56 "type": "string" 57 }, 58 "useFirstImageFromPost": { 59 "type": "boolean", 60 "default": false 61 } 62 }, 63 "usesContext": [ "postId", "postType", "queryId" ], 64 "example": { 65 "viewportWidth": 350 66 }, 67 "supports": { 68 "align": [ "left", "right", "center", "wide", "full" ], 69 "color": { 70 "text": false, 71 "background": false 72 }, 73 "__experimentalBorder": { 74 "color": true, 75 "radius": true, 76 "width": true, 77 "__experimentalSkipSerialization": true, 78 "__experimentalDefaultControls": { 79 "color": true, 80 "radius": true, 81 "width": true 82 } 83 }, 84 "filter": { 85 "duotone": true 86 }, 87 "shadow": { 88 "__experimentalSkipSerialization": true 89 }, 90 "html": false, 91 "spacing": { 92 "margin": true, 93 "padding": true 94 }, 95 "interactivity": { 96 "clientNavigation": true 97 } 98 }, 99 "selectors": { 100 "border": ".wp-block-post-featured-image img, .wp-block-post-featured-image .block-editor-media-placeholder, .wp-block-post-featured-image .wp-block-post-featured-image__overlay", 101 "shadow": ".wp-block-post-featured-image img, .wp-block-post-featured-image .components-placeholder", 102 "filter": { 103 "duotone": ".wp-block-post-featured-image img, .wp-block-post-featured-image .wp-block-post-featured-image__placeholder, .wp-block-post-featured-image .components-placeholder__illustration, .wp-block-post-featured-image .components-placeholder::before" 104 } 105 }, 106 "editorStyle": "wp-block-post-featured-image-editor", 107 "style": "wp-block-post-featured-image" 108 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Sat Feb 22 08:20:01 2025 | Cross-referenced by PHPXref |