use global WP_ENV instead of $environment