# WP\_ENVIRONMENT\_TYPE Support

**URL:** https://community.kinsta.com/t/wp-environment-type-support/390
**Category:** Feature Requests
**Created:** [February 17, 2021, 1:20pm UTC](https://community.kinsta.com/t/wp-environment-type-support/390 "2021-02-17T13:20:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jaschaio](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jaschaio/32/302_2.png) [@jaschaio](https://community.kinsta.com/u/jaschaio)
#### Post date: [February 17, 2021, 1:20pm UTC](https://community.kinsta.com/t/wp-environment-type-support/390/1 "2021-02-17T13:20:48Z")

</div>

As described in [the official Kinsta Blog](https://kinsta.com/feature-updates/wp_get_environment_type-function/) I would expect the `wp_get_environment_type()` method to return `development` on DevKinsta websites.

A workaround is just defining `define( 'WP_ENVIRONMENT_TYPE', 'development' );` within the `wp-config.php` file, but I would expect it similar to the Kinsta production and staging environments to be set automatically as this is easily forgot.

**Q: DevKinsta Version**  
**A: Version 1.0.2 (1.0.2.1256)**

**Q: OS Version**  
**A: macOS 10.15.6**

**Q: Docker Desktop Version**  
**A: 3.1.0**

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [February 17, 2021, 4:13pm UTC](https://community.kinsta.com/t/wp-environment-type-support/390/2 "2021-02-17T16:13:18Z")

</div>

Welcome to DevKinsta @jaschaio . `wp_get_environment_type` defaults to `production` so it makes sense that it would show that. Great idea to get this added though. I’ve moved this over to feature requests for our developer’s to take a look at. Thanks for the suggestion!

---

<div class="post-metadata">

### Author: ![Adam\_Bergman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adam_bergman/32/722_2.png) [@Adam\_Bergman](https://community.kinsta.com/u/Adam_Bergman)
#### Post date: [October 10, 2021, 9:54am UTC](https://community.kinsta.com/t/wp-environment-type-support/390/3 "2021-10-10T09:54:52Z")

</div>

Hey,  
Just wanted to drop in and say that if you “depend” (I would argue that you shouldn’t) on `wp_get_environment_type()` and `WP_ENVIRONMENT_TYPE` you can work around it until DevKinsta is able to set it for you, if they will 🙂

1. Enter the DevKinsta docker container and edit the fpm configuration:

```auto
$ docker exec -it devkinsta_fpm bash
$ cd /etc/php/7.4/fpm/pool.d
$ nano www.conf

```

2. Append the following line in the end of `www.conf`:

```auto
env[WP_ENVIRONMENT_TYPE] = local

```

3. Restart the container with `docker restart devkinsta_fpm`

Note that I had to install `nano` before I could get this working: `docker exec devkinsta_fpm bash -c "apt-get update;apt-get -y install nano"`
