Private Access Private Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Summery Summery

Check for the required PHP version, and the MySQL extension or a database drop-in.

Syntax Syntax


Description Description

Dies if requirements are not met.

Source Source

File: wp-includes/load.php


 * 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 include 'local', 'development', 'staging', 'production'.
 * If not set, the type defaults to 'production'.
 * @since 5.5.0
 * @since 5.5.1 Added the 'local' type.
 * @since 5.5.1 Removed the ability to alter the list of types.
 * @return string The current environment type.
function wp_get_environment_type() {
	static $current_env = '';

	if ( $current_env ) {
		return $current_env;

	$wp_environments = array(


Changelog Changelog

Version Description
3.0.0 Introduced.


Leave a Reply