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
398 stars 53 forks source link

Default $supports values #251

Open joseph-farruggio opened 1 month ago

joseph-farruggio commented 1 month ago

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

Log1x commented 1 month ago

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 commented 1 month ago

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