Wp-config constants

I’m wondering if there is a way to pre define constants for the wp-config.php file generated on a new site install? I know I could save the site as a blueprint, but wondered if there was a way to do anything like the extra-php parameter of the wp-cli config file.

Can you give an example of what constants?

Hey @afragen these could be anything from WP_DEBUG settings to AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY definitions.

I’ve written a plugin, WP Debugging, that adds a number of settings to wp-config.php and installs a couple of plugins.

If there’s interest I suppose I could add a filter to allow for other (more/different) settings.