Title: dotenv
Author: Brad Parbs
Published: <strong>2021 年 5 月 26 日</strong>
Last modified: 2021 年 5 月 28 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# dotenv

 由 [Brad Parbs](https://profiles.wordpress.org/bradparbs/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/dotenv/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/dotenv/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/dotenv/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/dotenv/#developers)

 [技術支援](https://wordpress.org/support/plugin/dotenv/)

## 外掛說明

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.

## 安裝方式

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈dotenv〉的開發相關工作。

參與者

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

〈dotenv〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/dotenv/contributors)
為這個外掛做出的貢獻。

[將〈dotenv〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/dotenv)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/dotenv/)、查看
[SVN 存放庫](https://plugins.svn.wordpress.org/dotenv/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/dotenv/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/dotenv/)。

## 中繼資料

 *  版本 **1.0.3**
 *  最後更新 **5 年前**
 *  啟用安裝數 **20+**
 *  WordPress 版本需求 ** 5.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.7.15**
 *  PHP 版本需求 ** 5.6 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/dotenv/) 及 [Swedish](https://sv.wordpress.org/plugins/dotenv/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/dotenv)
 * 標籤
 * [config](https://tw.wordpress.org/plugins/tags/config/)[configuration](https://tw.wordpress.org/plugins/tags/configuration/)
   [developer](https://tw.wordpress.org/plugins/tags/developer/)[environment](https://tw.wordpress.org/plugins/tags/environment/)
   [tools](https://tw.wordpress.org/plugins/tags/tools/)
 *  [進階檢視](https://tw.wordpress.org/plugins/dotenv/advanced/)

## 評分

這個項目尚無任何評論記錄。

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

[查看全部使用者評論](https://wordpress.org/support/plugin/dotenv/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/dotenv/)