Title: Environment Info
Author: Palasthotel GmbH
Published: <strong>20 Tháng 2, 2020</strong>
Last modified: 2 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/environment-info/assets/icon-256x256.png?rev=2247328)

# Environment Info

 Bởi [Palasthotel GmbH](https://profiles.wordpress.org/palasthotel/)

[Tải về](https://downloads.wordpress.org/plugin/environment-info.1.1.3.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/environment-info/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/environment-info/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/environment-info/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/environment-info/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/environment-info/)

## Mô tả

Show environmental info on your admin bar so you will never accidentally edit production
site contents instead of stage or the other way around.

## Cài đặt

 1. Install the plugin from Plugins > Add New, or upload `environment-info.zip` under
    Plugins > Add New > Upload Plugin
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Describe your environments in `wp-config.php`, see below

## Hỏi đáp

### How do I describe my environments?

Define the constant `ENVIRONMENT_INFO_SETTINGS` in `wp-config.php`, with one entry
per environment:

    ```
    define( 'ENVIRONMENT_INFO_SETTINGS', [
        [ 'path' => '/var/www/staging', 'title' => 'Staging', 'background' => '#b45309', 'color' => 'white' ],
        [ 'hostname' => 'web-prod-1', 'title' => 'Production', 'background' => '#b91c1c', 'color' => 'white' ],
    ] );
    ```

Each entry needs a `title` and is recognised either by `hostname`, compared with
the server’s host name, or by `path`, which matches when it appears anywhere in 
the plugin’s directory path. `background` and `color` take any CSS colour.

### The admin bar says “Unknown Server”

Exactly one entry has to match. With none, or with more than one, the label reads“
Unknown Server”; more than one match is also written to the error log. Tools > Environment
Info lists every entry, marks the active one and shows the current host name and
path, so you can see why nothing matched.

### Who sees the label?

Every logged-in user who sees the admin bar. The overview under Tools > Environment
Info requires the `manage_options` capability.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“Environment Info” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)
 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Jana Eggebrecht ](https://profiles.wordpress.org/janaeggebrecht/)

[Dịch “Environment Info” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/environment-info)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/environment-info/), check
out [SVN repository](https://plugins.svn.wordpress.org/environment-info/), hoặc 
theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/environment-info/)
qua [RSS](https://plugins.trac.wordpress.org/log/environment-info/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.1.3

**Bug Fixes**
 * stop an empty path from matching every server (00ae461)

#### 1.1.2

**Bug Fixes**
 * point the admin bar at the info page and escape rendered output(
ec0ed92)

#### 1.1.1

 * Bugfix: Removed a fatal error caused by wrong hook

#### 1.1.0

 * Feature: Identify environment by hostname
 * Feature: Tool page with overview of all defined environments

#### 1.0.0

 * Submitted to wordpress.org plugin repo version

## Meta

 *  Phiên bản **1.1.3**
 *  Cập nhật lần cuối **1 tháng trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 5.0.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/environment-info/)
 * Thẻ
 * [admin bar](https://vi.wordpress.org/plugins/tags/admin-bar/)[dashboard](https://vi.wordpress.org/plugins/tags/dashboard/)
   [information](https://vi.wordpress.org/plugins/tags/information/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/environment-info/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/environment-info/reviews/)

## Những người đóng góp

 *   [ Palasthotel GmbH ](https://profiles.wordpress.org/palasthotel/)
 *   [ EdwardBock ](https://profiles.wordpress.org/edwardbock/)
 *   [ Jana Eggebrecht ](https://profiles.wordpress.org/janaeggebrecht/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/environment-info/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://palasthotel.de/)