Using an .env file for database and other credentials with Wordpress & WooCommerce - Erik Pöhler's Weblog