WP_Site_Health::is_development_environment(): bool

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


Return

bool True if it is a development environment, false if not.


Top ↑

Source

File: wp-admin/includes/class-wp-site-health.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.