# wordpress-seo/18.8/src/helpers/environment-helper.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 18.8. 28 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.8/code/src/helpers/environment-helper.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.8/raw/src/helpers/environment-helper.php
- Modified: 2020-09-29T11:04:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/18.8/code/src/helpers/environment-helper.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Helpers;

/**
 * A helper object for site environment.
 */
class Environment_Helper {

	/**
	 * Determines if the site is running on production.
	 *
	 * @return bool True if WordPress is currently running on production, false for all other environments.
	 */
	public function is_production_mode() {
		return $this->get_wp_environment() === 'production';
	}

	/**
	 * Determines on which environment WordPress is running.
	 *
	 * @return string The current WordPress environment.
	 */
	public function get_wp_environment() {
		return \wp_get_environment_type();
	}
}

```
