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

Default $supports values #251

Open
joseph-farruggio opened this issue Jun 6, 2024 · 2 comments
Open

Default $supports values #251

joseph-farruggio opened this issue Jun 6, 2024 · 2 comments

Comments

@joseph-farruggio
Copy link
Sponsor

Is it possible to change the default values within $supports when generating a new block?

@Log1x
Copy link
Owner

Log1x commented Jun 6, 2024

You should be able to publish the stubs with wp acorn acf:stubs and then delete any you aren't customizing. Let me know if it doesn't work.

@Log1x
Copy link
Owner

Log1x commented Jun 6, 2024

I do think it'd be a nice feature in the future to make the stubs more dynamic so they could be configured in the acf-composer.php config. Maybe a nice feature to do once Acorn v5 is out as I'd like to drop support for Acorn v3 so I can use laravel/prompts in CLI since it requires PHP 8.1.

With the above, it'd also make it easy to do an interactive ordeal when creating blocks/fields to choose how they are configured straight from CLI. 😄

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