Title: Development Environment
Author: loonpwn
Published: <strong>2017 年 9 月 24 日</strong>
Last modified: 2019 年 1 月 14 日

---

搜尋外掛

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

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

![](https://s.w.org/plugins/geopattern-icon/easy-development_323232.svg)

# Development Environment

 由 [loonpwn](https://profiles.wordpress.org/loonpwn/) 開發

[下載](https://downloads.wordpress.org/plugin/easy-development.zip)

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

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

## 外掛說明

Whoops error handling, no password logins, template hints, no indexing, flush rewrites,
everything a developer needs for their local development environment.

Components

 * **Disallow Indexing** Turn off the public blog option. This will modify the robots.
   txt generation to block all search engines
 * **Flush Rewrites** No more weird redirection problems when working on custom 
   post types or taxonomies.
 * **No Password Logins** Just stick the user in you want to login as, write anything
   in the password field, and it will login! Only works when connecting from local
   host
 * **Whoops Error Handling** The error screen from laravel, now in your WordPress
   setup
 * **Template Hints** See which templates are loading for the page you are on

The goal is to exchange security for ease of use, for that reason it’s important
that you take the security measures needed
 to ensure that someone can’t take advantage
of the site with this plugin enabled.

If you’re running on a staging environment ensure you have setup a [htpasswd](http://www.htaccesstools.com/htpasswd-generator/)

#### **Filters**

_Set Environment_

    ```
    development-environment/is-development
    ```

Dynamically set how the plugin detects if the environment is development based on
your own criteria.

_Stop a component from loading_

    ```
    development-environment/require-component-$component
    ```

Disable require of a component if you don’t want to use it. Possible values are:

    ```
    disallow-indexing, `flush-rewrites`, `no-password-logins`, `whoops-error-handling`
    ```

## 安裝方式

To use the plugin, it must be able to detect the environment is development or staging,
this can be done via the following:

**wp-config.php**
 Add `define('WP_ENV', 'development')`

**vhost**
 Add `SetEnv WP_ENV "development"`

Or additionally via the available hooks.

## 使用者評論

![](https://secure.gravatar.com/avatar/6d62ca1bd186a2e75ce8fc5a2f161536d03312a45ba7e30f1f9440d8367d3432?
s=60&d=retro&r=g)

### 󠀁[No More Headaches!](https://wordpress.org/support/topic/no-more-headaches-2/)󠁿

 [loonpwn](https://profiles.wordpress.org/loonpwn/) 2017 年 10 月 23 日 1 則留言

– quote from user – “When an error is thrown it’s so easy to find it and quickly
debug why it happened, and the no password login makes my day so much easier

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/easy-development/reviews/)

## 參與者及開發者

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

參與者

 *   [ loonpwn ](https://profiles.wordpress.org/loonpwn/)

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

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

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

## 變更記錄

See changelog on (github)[https://github.com/loonpwn/wp-development-environment/
releases]

## 中繼資料

 *  版本 **1.0.6**
 *  最後更新 **7 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 4.6 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.0.25**
 *  PHP 版本需求 ** 7.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/easy-development/)
 * 標籤:
 * [dev](https://tw.wordpress.org/plugins/tags/dev/)[development](https://tw.wordpress.org/plugins/tags/development/)
   [easy](https://tw.wordpress.org/plugins/tags/easy/)[env](https://tw.wordpress.org/plugins/tags/env/)
   [environment](https://tw.wordpress.org/plugins/tags/environment/)
 *  [進階檢視](https://tw.wordpress.org/plugins/easy-development/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/easy-development/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/easy-development/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/easy-development/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/easy-development/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/easy-development/reviews/?filter=1)

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

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

## 參與者

 *   [ loonpwn ](https://profiles.wordpress.org/loonpwn/)

## 技術支援

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

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