# Add WP\_ENVIRONMENT\_TYPE to default wp-config file

**URL:** <https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501>\
**Category:** Workflow\
**Created:** [August 14, 2020, 3:50am UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501 "2020-08-14T03:50:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [August 14, 2020, 3:50am UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501/1 "2020-08-14T03:50:33Z")

</div>

WP 5.5 now includes support for a `WP_ENVIRONMENT_TYPE` constant. It can take the values of `development`, `staging`, or `production`.

Any thoughts about adding `define( 'WP_ENVIRONMENT_TYPE', 'development' );` to the default wp-config.php that is created by Local?

---

<div class="post-metadata">

**Author:** ![claytoncollie1](https://avatars.discourse-cdn.com/v4/letter/c/3bc359/32.png) [@claytoncollie1](https://community.localwp.com/u/claytoncollie1)\
**Post date:** [September 1, 2020, 3:53pm UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501/2 "2020-09-01T15:53:53Z")

</div>

as of 5.5.1, released on September 1st, there will be a fourth environment type, `local`.

I would consider using that instead of `development`.

---

<div class="post-metadata">

**Author:** ![ben.turner](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/ben.turner/32/5366_2.png) [@ben.turner](https://community.localwp.com/u/ben.turner)\
**Post date:** [September 1, 2020, 5:31pm UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501/3 "2020-09-01T17:31:21Z")

</div>

We definitely are on the way for getting this included. If you’d like to follow along, here is the the link to the public feature request:

[https://localwp.canny.io/feature-requests/p/return-local-for-wpgetenvironmenttype-in-wp-55](https://localwp.canny.io/feature-requests/p/return-local-for-wpgetenvironmenttype-in-wp-55)

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [September 1, 2020, 8:39pm UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501/4 "2020-09-01T20:39:22Z")

</div>

Also, the next version of Local Development plugin will have the ability to set this new constant.

> **[Local Development](https://wordpress.org/plugins/local-development/)**
>
> Places development notice for plugins or themes that are in local development. Prevents updating of selected plugins and themes.

---

<div class="post-metadata">

**Author:** ![afragen](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/afragen/32/31_2.png) [@afragen](https://community.localwp.com/u/afragen)\
**Post date:** [September 2, 2020, 12:26am UTC](https://community.localwp.com/t/add-wp-environment-type-to-default-wp-config-file/21501/5 "2020-09-02T00:26:02Z")

</div>

`develop` branch also will display environment type setting in admin bar when site is in Local.
