kollapsminoriteten/wp-includes/blocks/query/block.json

57 lines
1.1 KiB
JSON
Raw Normal View History

2021-07-23 11:58:50 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2021-07-23 11:58:50 +02:00
"name": "core/query",
"title": "Query Loop",
"category": "theme",
"description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
"textdomain": "default",
"attributes": {
"queryId": {
"type": "number"
},
"query": {
"type": "object",
"default": {
"perPage": null,
"pages": 0,
"offset": 0,
"postType": "post",
"order": "desc",
"orderBy": "date",
"author": "",
"search": "",
"exclude": [],
"sticky": "",
2022-06-16 14:03:35 +02:00
"inherit": true,
2022-12-15 17:47:31 +01:00
"taxQuery": null,
"parents": []
2021-07-23 11:58:50 +02:00
}
},
"tagName": {
"type": "string",
"default": "div"
},
2022-12-15 17:47:31 +01:00
"namespace": {
"type": "string"
2023-12-07 09:44:11 +01:00
},
"enhancedPagination": {
"type": "boolean",
"default": false
2021-07-23 11:58:50 +02:00
}
},
"providesContext": {
"queryId": "queryId",
"query": "query",
2023-12-07 09:44:11 +01:00
"displayLayout": "displayLayout",
"enhancedPagination": "enhancedPagination"
2021-07-23 11:58:50 +02:00
},
"supports": {
"align": [ "wide", "full" ],
"html": false,
2024-04-17 11:32:24 +02:00
"layout": true,
"interactivity": true
2021-07-23 11:58:50 +02:00
},
2024-04-17 11:32:24 +02:00
"editorStyle": "wp-block-query-editor"
2021-07-23 11:58:50 +02:00
}