[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/query/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/query",
   5      "title": "Query Loop",
   6      "category": "theme",
   7      "description": "An advanced block that allows displaying post types based on different query parameters and visual configurations.",
   8      "textdomain": "default",
   9      "attributes": {
  10          "queryId": {
  11              "type": "number"
  12          },
  13          "query": {
  14              "type": "object",
  15              "default": {
  16                  "perPage": null,
  17                  "pages": 0,
  18                  "offset": 0,
  19                  "postType": "post",
  20                  "order": "desc",
  21                  "orderBy": "date",
  22                  "author": "",
  23                  "search": "",
  24                  "exclude": [],
  25                  "sticky": "",
  26                  "inherit": true,
  27                  "taxQuery": null,
  28                  "parents": [],
  29                  "format": []
  30              }
  31          },
  32          "tagName": {
  33              "type": "string",
  34              "default": "div"
  35          },
  36          "namespace": {
  37              "type": "string"
  38          },
  39          "enhancedPagination": {
  40              "type": "boolean",
  41              "default": false
  42          }
  43      },
  44      "usesContext": [ "postType" ],
  45      "providesContext": {
  46          "queryId": "queryId",
  47          "query": "query",
  48          "displayLayout": "displayLayout",
  49          "enhancedPagination": "enhancedPagination"
  50      },
  51      "supports": {
  52          "align": [ "wide", "full" ],
  53          "html": false,
  54          "layout": true,
  55          "interactivity": true
  56      },
  57      "editorStyle": "wp-block-query-editor"
  58  }


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref