WP_Site_Health::is_development_environment() – Checks if the current environment type is set to ‘development’ or ‘local’.

You appear to be a bot. Output may be restricted

Description

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

Usage

$bool = WP_Site_Health::is_development_environment();

Parameters

Returns

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

Source

File name: wordpress/wp-admin/includes/class-wp-site-health.php
Lines:

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

 View on GitHub View on Trac