the commands from an array in the scripts section will be executed, allowing to do something with the new WP install: hydrate the database from the SQL or wrx/xml file, configure settings, etc. Tons of possibilities.
I don't think this needs to be in the defaults section though, can't think of the use cases where it's needed globally for all templates.
Similar to what
composer.json : scripts
allows us to do - execute a certain script.So, when a site is created using this templates, for example:
the commands from an array in the
scripts
section will be executed, allowing to do something with the new WP install: hydrate the database from the SQL or wrx/xml file, configure settings, etc. Tons of possibilities.I don't think this needs to be in the
defaults
section though, can't think of the use cases where it's needed globally for all templates.