dotenv
A WordPress plugin to set WordPress options from a .env file.
Solide Wahl
dotenv is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 1 week ago, and scores 66/100 on our health check.
- Aktiv entwickelt — letztes Update vor 1 Woche
- Getestet mit dem neuesten WordPress (7.1)
- Kleine Benutzerbasis (10+ aktive Installationen)
- Bisher sehr wenige Bewertungen
Wie stapelt es sich?
Side-by-side bei Installationen, Updates, Bewertungen und SupportTägliche Downloads
Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.
Ranglisten
Where dotenv stands todayWordPress.org Ranglisten suchen
Live-Position in der Plugin-Suche, Top 100| Stichwort | Position |
|---|---|
| config | #100 |
| configuration | >100 |
| Entwickler | >100 |
| environment | >100 |
| tools | >100 |
Versionsübernahme
Anteil aktiver Sites pro Release.
About dotenv
Aus der offiziellen Readme · V1.0.4Beschreibung
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_optionstable or retrieved byget_option()can be set this way. -
You can define keys either as
WPENV_BLOGDESCRIPTIONor asWPENV_blogdescription, both will work. -
If you’d like to define the location of your
.envfile, rather than the plugin looking for it, you can filterdotenv_locationto be a directory path. -
You can also change the
WPENV_prefix by filteringdotenv_key_prefixto be a different prefix.
Installation
- Install the plugin.
- Add a
.envfile either in the root of your site or one level above. - Add any WordPress options keys to filter with the prefix
WPENV_
- Add a
Änderungsprotokoll
1.0.4
- Fixed uppercase keys like
WPENV_BLOGDESCRIPTIONnot setting the option. - Added the
dotenv_key_prefixfilter. The misspelledwpdotev_key_prefixfilter still works. - An invalid
.envfile no longer causes a fatal error. - Updated phpdotenv to 5.8.
- Requires WordPress 6.0 and PHP 7.4, tested up to WordPress 7.1.
Für Entwickler
Ist das dein Plugin? Zeigen Sie die Zahlen.
Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.
Best dotenv alternatives
All config plugins →Fragen und Antworten
dotenv: quick answers
Gerade Antworten, gezogen von Live WordPress.org Daten.
Quelle: WordPress.org
Is dotenv free?
Yes. dotenv is free to download and use from the official WordPress.org plugin directory.
Is dotenv safe to use in 2026?
dotenv is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 1 week ago, and scores 66/100 on our health check.
How many websites use dotenv?
dotenv is active on 10+ WordPress websites and has been downloaded 4,276 times since it launched in May 2021. It was downloaded 180 times in the last 30 days.
Does dotenv work with WordPress 7.1?
Yes. The developer has tested dotenv up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.
What PHP version does dotenv need?
dotenv requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was dotenv last updated?
The latest version, 1.0.4, was released on November 19, 2026 (1 week ago).
Who makes dotenv?
dotenv is developed and maintained by Brad Parbs.
What are the best alternatives to dotenv?
The most popular alternatives to dotenv are Brozzme DB Prefix & Tools A… (9K+ installs), Developer Debug Tools (100+ installs) and Config Constants (100+ installs).
Angetrieben von PageForge
Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.
PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.
- CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
- seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
- Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
- Kostenlos auf WordPress.org, keine Kreditkarte
