wp_get_environment_type()
Retrieves the current environment type.
Description
The type can be set via the WP_ENVIRONMENT_TYPE
global system variable, or a constant of the same name.
Possible values are ‘local’, ‘development’, ‘staging’, and ‘production’.
If not set, the type defaults to ‘production’.
Return
(string) The current environment type.
Source
File: wp-includes/load.php
Changelog
Version | Description |
---|---|
5.5.1 | Removed the ability to alter the list of types. |
5.5.0 | Introduced. |