wp_get_environment_type


wp_get_environment_type ( No parameters )

Returns:
  • (string) The current environment type.
Defined at:
Change Log:
  • 5: .
  • 5: .

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'.

Related Functions

wp_get_mime_types, wp_get_ext_types, get_comment_type, wp_get_development_mode, wp_get_nav_menu_items

Top Google Results

User discussions

wpseek mobile