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

---

Søg plugins

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

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

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

# dotenv

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

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

 * [Detaljer](https://da.wordpress.org/plugins/dotenv/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/dotenv/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/dotenv/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/dotenv/#developers)

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

## Beskrivelse

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_`

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“dotenv” er open source-software. Følgende personer har bidraget til dette plugin.

Bidragsydere

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

“dotenv” er blevet oversat til 1 sprog. Tak til [oversætterne](https://translate.wordpress.org/projects/wp-plugins/dotenv/contributors)
for deres bidrag.

[Oversæt “dotenv” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/dotenv)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/dotenv/), tjek [SVN repository](https://plugins.svn.wordpress.org/dotenv/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/dotenv/)
via [RSS](https://plugins.trac.wordpress.org/log/dotenv/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.0.3**
 *  Senest opdateret **5 år siden**
 *  Aktive installationer **20+**
 *  WordPress-version ** 5.2 eller højere **
 *  Testet op til **5.7.15**
 *  PHP-version ** 5.6 eller højere **
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/dotenv/) og [Swedish](https://sv.wordpress.org/plugins/dotenv/).
 *  [Oversæt til dit sprog](https://translate.wordpress.org/projects/wp-plugins/dotenv)
 * Tags
 * [config](https://da.wordpress.org/plugins/tags/config/)[configuration](https://da.wordpress.org/plugins/tags/configuration/)
   [developer](https://da.wordpress.org/plugins/tags/developer/)[environment](https://da.wordpress.org/plugins/tags/environment/)
   [tools](https://da.wordpress.org/plugins/tags/tools/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/dotenv/advanced/)

## Bedømmelser

Der er endnu ikke indsendt nogen anmeldelser.

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

[Se alle anmeldelser.](https://wordpress.org/support/plugin/dotenv/reviews/)

## Bidragsydere

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

## Support

Har du noget at sige? Har du brug for hjælp?

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