PluginProbe
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder / 2.13.0
aBlocks – Gutenberg Blocks, User Dashboard Builder, Popup Builder, Form Builder & Animation Builder v2.13.0
2.13.0 2.13.1 2.12.0 2.11.1 2.11.0 2.10.0 2.9.0 2.7.4 2.7.5 2.7.6 2.7.7 2.8.0 2.8.1 2.9.1 trunk 1.0 1.0-beta1 1.0-beta2 1.0-beta3 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 All 80 releases
← All changes | includes/blocks/loop-builder/attributes.php +53 -0 2.7.72.13.0 View file →
@@ -1,0 +1,53 @@
1 +<?php
2 +
3 +if ( ! defined( 'ABSPATH' ) ) {
4 + exit;
5 +}
6 +
7 +$attributes = [
8 + 'block_id' => [
9 + 'type' => 'string',
10 + 'default' => ''
11 + ],
12 + 'blockVersion' => array(
13 + 'type' => 'number',
14 + 'default' => '',
15 + ),
16 + 'queryId' => [
17 + 'type' => 'number'
18 + ],
19 + 'query' => [
20 + 'type' => 'object',
21 + 'default' => [
22 + 'perPage' => null,
23 + 'pages' => 0,
24 + 'offset' => 0,
25 + 'postType' => 'post',
26 + 'order' => 'desc',
27 + 'orderBy' => 'date',
28 + 'author' => '',
29 + 'search' => '',
30 + 'exclude' => [],
31 + 'sticky' => '',
32 + 'inherit' => false,
33 + 'taxQuery' => null,
34 + 'parents' => [],
35 + 'format' => []
36 + ]
37 + ],
38 + 'selectedVariation' => [
39 + 'type' => 'string',
40 + 'default' => 'div'
41 + ],
42 + 'tagName' => [
43 + 'type' => 'string',
44 + 'default' => 'div'
45 + ],
46 + 'showOffset' => [
47 + 'type' => 'boolean',
48 + 'default' => false,
49 + ],
50 +];
51 +
52 +return array_merge( $attributes, \ABlocks\Classes\BlockGlobal::get_attributes() );
53 +