WordPress at Your Fingertips
function is not described

WP_Site_Health::is_development_environment() public WP 5.6.0

Checks if the current environment type is set to 'development' or 'local'.

{} It's a method of the class: WP_Site_Health{}

No Hooks.

Return

true|false. True if it is a development environment, false if not.

Usage

$WP_Site_Health = new WP_Site_Health();
$WP_Site_Health->is_development_environment();

Changelog

Since 5.6.0 Introduced.

Code of WP_Site_Health::is_development_environment() WP 5.8.2

public function is_development_environment() {
	return in_array( wp_get_environment_type(), array( 'development', 'local' ), true );
}