We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$apiVersion
1 parent 5fe0cee commit ad347beCopy full SHA for ad347be
src/Block.php
@@ -277,6 +277,13 @@ abstract class Block extends Composer implements BlockContract
277
*/
278
public $blockVersion = 2;
279
280
+ /**
281
+ * The ACF block API version.
282
+ *
283
+ * @var int
284
+ */
285
+ public $apiVersion = 2;
286
+
287
/**
288
* Validate block fields as per the field group configuration.
289
*
@@ -632,7 +639,7 @@ public function settings(): Collection
632
639
'supports' => $this->getSupports(),
633
640
'textdomain' => $this->getTextDomain(),
634
641
'acf_block_version' => $this->blockVersion,
635
- 'api_version' => 2,
642
+ 'api_version' => $this->apiVersion,
636
643
'validate' => $this->validate,
637
644
'use_post_meta' => $this->usePostMeta,
638
645
'render_callback' => function (
0 commit comments