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)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/easy-development/#description)
 * [评价](https://cn.wordpress.org/plugins/easy-development/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/easy-development/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **5.0.25**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/easy-development/)
 * 标签
 * [dev](https://cn.wordpress.org/plugins/tags/dev/)[development](https://cn.wordpress.org/plugins/tags/development/)
   [easy](https://cn.wordpress.org/plugins/tags/easy/)[env](https://cn.wordpress.org/plugins/tags/env/)
   [environment](https://cn.wordpress.org/plugins/tags/environment/)
 *  [高级视图](https://cn.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/)