Support environment variables


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:

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

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *