Log1x / acf-composer

Compose ACF Fields, Blocks, Widgets, and Option Pages with ACF Builder on Sage 10.
https://github.com/Log1x/acf-composer
MIT License
417 stars 57 forks source link

Required field validation in blocks #254

Closed chrisbakr closed 2 months ago

chrisbakr commented 3 months ago

ACF v3.0 implemented block validation but this doesn't seem to be working with the setRequired() method from acf-composer.

Log1x commented 3 months ago

It will only work when blocks are cached to block.json files with wp acorn acf:cache – haven't had time to look into if it is possible when they are registered through PHP.