Skip to content

Commit

Permalink
🦺 Add validation support to uncached blocks (Fixes #254) (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x authored Jul 16, 2024
1 parent e8e1ddf commit 1dfc497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,8 @@ public function settings(): Collection
'enqueue_assets' => fn ($block) => method_exists($this, 'assets') ? $this->assets($block) : null,
'textdomain' => $this->getTextDomain(),
'acf_block_version' => 2,
'api_version' => 2,
'validate' => true,
'use_post_meta' => $this->usePostMeta,
'render_callback' => function (
$block,
Expand Down

0 comments on commit 1dfc497

Please sign in to comment.