WordPress plugin
dotenv
A WordPress plugin to set WordPress options from a .env file.
- Active installs
- 10+
- Version
- 1.0.4
- Last updated
- Nov 19, 2026
- Tested up to
- WordPress 7.1.5
- Requires
- WP 6.0 · PHP 7.4
Health check
Is dotenv safe to rely on?
Our reading of the public WordPress.org data: maintenance, compatibility, ratings and support.
Actively maintained
Last updated on November 19, 2026. Regular updates usually mean bugs and security reports get fixed.
Tested with current WordPress
The author has tested it up to WordPress 7.1.5.
Requires PHP 7.4 or newer
Check your hosting PHP version before installing. Modern PHP is faster and receives security fixes.
Rank tracker
Where dotenv ranks in WordPress.org search
Its position in WordPress.org plugin search for its tags and name, refreshed weekly so you can see how its visibility changes.
| Keyword | Position | Change | Trend | Current #1 |
|---|---|---|---|---|
| config(WordPress.org search, opens in a new tab) | #100 | First check | WP Sitemaps Config700+ installs | |
| configuration(WordPress.org search, opens in a new tab) | Not in top 100 | First check | Wordfence Security – Firewall, Malware Scan, and Login Security5M+ installs | |
| developer(WordPress.org search, opens in a new tab) | Not in top 100 | First check | WooCommerce7M+ installs | |
| environment(WordPress.org search, opens in a new tab) | Not in top 100 | First check | LiteSpeed Cache7M+ installs | |
| tools(WordPress.org search, opens in a new tab) | Not in top 100 | First check | Rank Math SEO – AI SEO Tools to Dominate SEO Rankings4M+ installs | |
| dotenv(WordPress.org search, opens in a new tab) | #1 | First check | dotenvThis plugin10+ installs |
Checked against the top 100 WordPress.org search results on .
Overview
What dotenv does
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 dotenv_key_prefix to be a different prefix.
Description from the author's listing. Read the full listing on WordPress.org
FAQ
dotenv: questions and answers
What is dotenv?
dotenv is a WordPress plugin by Brad Parbs. A WordPress plugin to set WordPress options from a .env file.
Is dotenv free?
dotenv is listed in the WordPress.org plugin directory, so the version there is free to download and use. Some authors also sell paid add-ons or a premium edition with more features and support.
How many websites use dotenv?
WordPress.org reports 10+ active installations of dotenv. That figure counts sites running the WordPress.org version and is rounded down by WordPress.org.
Is dotenv still maintained?
dotenv was last updated on November 19, 2026. The current version is 1.0.4. Check the changelog on WordPress.org and test updates on a staging site before applying them to a live site.
What does dotenv require?
dotenv requires WordPress 6.0 or newer and PHP 7.4 or newer. It has been tested up to WordPress 7.1.5.
Can Codefreex set up or customize dotenv?
Yes. Codefreex installs, configures and customizes WordPress plugins including dotenv, fixes conflicts and performance problems, and builds custom features when a plugin does not do exactly what you need. Send your site URL for a free review.
Free expert review
Need dotenv set up, customized or fixed?
Tell us about your site and what you need this plugin to do. A senior WordPress developer replies within one business day with a plan and a quote.