Title: dotenv
Author: Brad Parbs
Published: <strong>May 26, 2021</strong>
Last modified: May 28, 2021

---

Search plugins

![](https://ps.w.org/dotenv/assets/banner-772x250.png?rev=2538828)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/dotenv/assets/icon-256x256.jpg?rev=2538828)

# dotenv

 By [Brad Parbs](https://profiles.wordpress.org/bradparbs/)

[Download](https://downloads.wordpress.org/plugin/dotenv.1.0.3.zip)

 * [Details](https://pcd.wordpress.org/plugins/dotenv/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/dotenv/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/dotenv/#installation)
 * [Development](https://pcd.wordpress.org/plugins/dotenv/#developers)

 [Support](https://wordpress.org/support/plugin/dotenv/)

## Description

Any `WPENV_` prefixed variables in the `.env` will be used to override the WordPress
options. For example, if you’d like to set a specific environment to “Discourage
search engines from indexing this site”, you can add `WPENV_BLOG_PUBLIC=0` to your`.
env` file.

 * Any option in the `wp_options` table or retrieved by `get_option()` can be set
   this way.
 * You can define keys either as `WPENV_BLOGDESCRIPTION` or as `WPENV_blogdescription`,
   both will work.
 * If you’d like to define the location of your `.env` file, rather than the plugin
   looking for it, you can filter `dotenv_location` to be a directory path.
 * You can also change the `WPENV_` prefix by filtering `dotev_key_prefix` to be
   a different prefix.

## Installation

 * Install the plugin.
    - Add a `.env` file either in the root of your site or one level above.
    - Add any WordPress options keys to filter with the prefix `WPENV_`

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“dotenv” is open source software. The following people have contributed to this 
plugin.

Contributors

 *   [ Brad Parbs ](https://profiles.wordpress.org/bradparbs/)

“dotenv” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/dotenv/contributors)
for their contributions.

[Translate “dotenv” into your language.](https://translate.wordpress.org/projects/wp-plugins/dotenv)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dotenv/), check out
the [SVN repository](https://plugins.svn.wordpress.org/dotenv/), or subscribe to
the [development log](https://plugins.trac.wordpress.org/log/dotenv/) by [RSS](https://plugins.trac.wordpress.org/log/dotenv/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.3**
 *  Last updated **5 years ago**
 *  Active installations **20+**
 *  WordPress version ** 5.2 or higher **
 *  Tested up to **5.7.15**
 *  PHP version ** 5.6 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/dotenv/) and [Swedish](https://sv.wordpress.org/plugins/dotenv/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/dotenv)
 * Tags
 * [config](https://pcd.wordpress.org/plugins/tags/config/)[configuration](https://pcd.wordpress.org/plugins/tags/configuration/)
   [developer](https://pcd.wordpress.org/plugins/tags/developer/)[environment](https://pcd.wordpress.org/plugins/tags/environment/)
   [tools](https://pcd.wordpress.org/plugins/tags/tools/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/dotenv/advanced/)

## Ratings

No reviews have been submitted yet.

[Add my review](https://wordpress.org/support/plugin/dotenv/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dotenv/reviews/)

## Contributors

 *   [ Brad Parbs ](https://profiles.wordpress.org/bradparbs/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dotenv/)