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

Closed
joseph-farruggio opened this issue Jun 6, 2024 · 3 comments · Fixed by #278
Closed

Default $supports values #251

joseph-farruggio opened this issue Jun 6, 2024 · 3 comments · Fixed by #278

Comments

@joseph-farruggio
Copy link

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. 😄

@Log1x
Copy link
Owner

Log1x commented Aug 29, 2024

This is done in #278 for #253 and will be merged when Acorn v5 is released. 👍

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

Successfully merging a pull request may close this issue.

2 participants