Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Required field validation in blocks #254

Open
chrisbakr opened this issue Jun 7, 2024 · 1 comment
Open

Required field validation in blocks #254

chrisbakr opened this issue Jun 7, 2024 · 1 comment

Comments

@chrisbakr
Copy link

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

@Log1x
Copy link
Owner

Log1x commented Jun 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants