acf-composer icon indicating copy to clipboard operation
acf-composer copied to clipboard

Default $supports values

Open joseph-farruggio opened this issue 1 year ago • 3 comments

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

joseph-farruggio avatar Jun 06 '24 20:06 joseph-farruggio

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 avatar Jun 06 '24 20:06 Log1x

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 avatar Jun 06 '24 21:06 Log1x

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

Log1x avatar Aug 29 '24 16:08 Log1x