Support environment variables

3
2 years agoopen0

The WPO365 plugins support numerous PHP constants for configuration, e.g., `WPO_AAD_*`, `WPO_MU_USE_SUBSITE_OPTIONS`, `WPO_ALLOW_DEVELOPER_HOOKS`, etc.

In Composer-based environments (but not only there), the use of environment variables is common, mostly stored in `.env` files.

It would be great if the WPO365 plugins supported environment variables in addition to PHP constants. This would allow us not to have to use “hacks” like this: https://wecodemore.github.io/wpstarter/02-Environment-Variables.html#environment-variables-and-wordpress

(But please note that env vars don’t support native array structures.)

What do you think?
Thanks!