bigcommerce_get_env( string $key )
Summary
Look for a value in an environment variable, falling back to a constant. This allows configuration options to be set either in the environment or in wp-config.php.
Parameters
- $key
-
(string) (Required) The name of an environment variable or constant
Return
(mixed) The found value. false if not found.
Source
File: bigcommerce.php
function bigcommerce_get_env( $key ) { $value = getenv( $key, true ) ?: getenv( $key ); if ( $value === false && defined( $key ) ) { $value = constant( $key ); } return $value; }