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.


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


$WP_Site_Health = new WP_Site_Health();


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 );