wp_get_environment_type
wp_get_environment_type ( No parameters )
Returns:- (string) The current environment type.
Defined at:Change Log: - Introduced in WordPress: 5.5.0
- Deprecated in WordPress: —
Description
Retrieves the current environment type.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'.