wp/wp-includes/blocks/query/block.json
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
     1 {
     1 {
       
     2 	"$schema": "https://schemas.wp.org/trunk/block.json",
     2 	"apiVersion": 2,
     3 	"apiVersion": 2,
     3 	"name": "core/query",
     4 	"name": "core/query",
     4 	"title": "Query Loop",
     5 	"title": "Query Loop",
     5 	"category": "theme",
     6 	"category": "theme",
     6 	"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
     7 	"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
    14 			"default": {
    15 			"default": {
    15 				"perPage": null,
    16 				"perPage": null,
    16 				"pages": 0,
    17 				"pages": 0,
    17 				"offset": 0,
    18 				"offset": 0,
    18 				"postType": "post",
    19 				"postType": "post",
    19 				"categoryIds": [],
       
    20 				"tagIds": [],
       
    21 				"order": "desc",
    20 				"order": "desc",
    22 				"orderBy": "date",
    21 				"orderBy": "date",
    23 				"author": "",
    22 				"author": "",
    24 				"search": "",
    23 				"search": "",
    25 				"exclude": [],
    24 				"exclude": [],
    26 				"sticky": "",
    25 				"sticky": "",
    27 				"inherit": true
    26 				"inherit": true,
       
    27 				"taxQuery": null
    28 			}
    28 			}
    29 		},
    29 		},
    30 		"tagName": {
    30 		"tagName": {
    31 			"type": "string",
    31 			"type": "string",
    32 			"default": "div"
    32 			"default": "div"
    46 	"supports": {
    46 	"supports": {
    47 		"align": [ "wide", "full" ],
    47 		"align": [ "wide", "full" ],
    48 		"html": false,
    48 		"html": false,
    49 		"color": {
    49 		"color": {
    50 			"gradients": true,
    50 			"gradients": true,
    51 			"link": true
    51 			"link": true,
       
    52 			"__experimentalDefaultControls": {
       
    53 				"background": true,
       
    54 				"text": true
       
    55 			}
    52 		},
    56 		},
    53 		"__experimentalLayout": true
    57 		"__experimentalLayout": true
    54 	},
    58 	},
    55 	"editorStyle": "wp-block-query-editor"
    59 	"editorStyle": "wp-block-query-editor"
    56 }
    60 }