Title: Display Environment Type
Author: Stoil Dobreff
Published: <strong>2020年8月21日</strong>
Last modified: 2025年12月19日

---

プラグインを検索

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

# Display Environment Type

 作者: [Stoil Dobreff](https://profiles.wordpress.org/sdobreff/)

[ダウンロード](https://downloads.wordpress.org/plugin/display-environment-type.1.6.0.zip)

[ライブプレビュー](https://ja.wordpress.org/plugins/display-environment-type/?preview=1)

 * [詳細](https://ja.wordpress.org/plugins/display-environment-type/#description)
 * [レビュー](https://ja.wordpress.org/plugins/display-environment-type/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/display-environment-type/#installation)
 * [開発](https://ja.wordpress.org/plugins/display-environment-type/#developers)

 [サポート](https://wordpress.org/support/plugin/display-environment-type/)

## 説明

WordPress 5.5 では、環境タイプ (開発、ステージング、本番) を区別する方法が導入さ
れました。このプラグインは、サイトの環境タイプを管理バーとダッシュボードの「概要」
ウィジェットに表示します。

[新機能の詳細情報](https://make.wordpress.org/core/2020/07/24/new-wp_get_environment_type-function-in-wordpress-5-5/)

さらに詳細な制御 (たとえば `wp-config.php` が書き込み可能な場合に WordPress 管理
画面から環境やその他の値を設定するなど) を行うには、もう1つのプラグイン **[0 Day Analytics](https://wordpress.org/plugins/0-day-analytics/)**
のインストールを検討してください。

### 推奨プラグイン

 * [0 Day Analytics](https://wordpress.org/plugins/0-day-analytics/) — エラーや実行
   時の挙動についてより詳細な洞察を必要とするサイトのための強力なプラグインです。
   これには、Cron マネージャー、トランジェントマネージャー (データベースバックアップ
   付き)、DB マネージャー、スニペットマネージャー、メールマネージャー、プラグイン
   ページから利用可能なプラグインバージョン切り替え機能などが含まれています。

## スクリーンショット

 * [[
 * 管理バーの表示 (本番環境)。
 * [[
 * 管理バーの表示 (ステージング)。
 * [[
 * 管理バーの表示 (開発)。
 * [[
 * 管理バーの表示 (カスタム)。
 * [[
 * 「一目でわかる」ウィジェット。

## インストール

 1. WordPress の「プラグイン」メニューからインストールし、有効化します。

## FAQ

### 環境タイプにカスタム色を設定できますか ?

混乱を避けるため、色は意図的に固定されています。もし色が変更可能であれば、一貫性
を保つために関連するすべてのサーバーで同じ設定にする必要があります。

### カスタム環境タイプを定義すると何が起こりますか ?

カスタム環境タイプは WordPress 5.5 で一時的にサポートされましたが、5.5.1 で削除さ
れました。このプラグインはカスタムタイプをサポートしていません。

### なぜ管理者以外にはフロントエンドで環境タイプが表示されないのですか?

デフォルトでは、環境タイプは管理者権限を持つユーザーにのみ表示されます。これにより、
購読者などの管理者以外のユーザーに目立つ色のインジケーターが表示されるのを防ぎます。

さらなる制御が必要な場合は、`det_display_environment_type` フィルターフックを使用
してください。例:

    ```
    function rt_det_display_filter( $display ) {
        // Disable the environment type display for user ID 2.
        return ( get_current_user_id() !== 2 );
    }
    add_filter( 'det_display_environment_type', 'rt_det_display_filter' );
    ```

## 評価

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

### 󠀁[Helpful Reminder](https://wordpress.org/support/topic/helpful-reminder/)󠁿

 [ericsackett](https://profiles.wordpress.org/ericsackett/) 2025年4月9日

Easy to see reminder of which version of the site I’m on.

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

### 󠀁[This is what a developer needs](https://wordpress.org/support/topic/this-is-what-a-developer-needs/)󠁿

 [drinkmaker](https://profiles.wordpress.org/drinkmaker/) 2024年1月24日

Five stars for Display Environment Type! Huge thanks to the author for creating 
this gem. The plugin might be small, but it’s incredibly useful, doing exactly what
you’d expect without any unnecessary clutter. No settings hassle – just install 
and get to work seamlessly.

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

### 󠀁[Yes, you are working on the live site – PAY ATTENTION!](https://wordpress.org/support/topic/yes-you-are-working-on-the-live-site-pay-attention/)󠁿

 [Bjarne Oldrup](https://profiles.wordpress.org/oldrup/) 2022年4月26日

I switch a LOT between production sites and a clone made for testing, when creating
a real staging environment is not possible. More than once, I have unintentionally
made changes to the wrong instance of the site. That’s no fun. Display Environment
Type makes it very clear what I’m working on, when I should pay extra attention.
Recommended.

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

### 󠀁[Nice little helper](https://wordpress.org/support/topic/nice-little-helper-4/)󠁿

 [Bego Mario Garde](https://profiles.wordpress.org/pixolin/) 2020年8月21日

Have you ever accidentally added test content to a productive website? You can now
define a constant in your wp-config.php to distinguish between development, staging
and productuion sites. To make this visible, this lean but helpful plugin adds an
indicator to the admin bar and dashboard widget which helps to avoid mistakes as
adding “Lorem ipsum” to your productive site. 🙂 Plugin works like a charm. No settings
needed. Install, activate and feel happy.

 [ 4件のレビューをすべて表示 ](https://wordpress.org/support/plugin/display-environment-type/reviews/)

## 貢献者と開発者

Display Environment Type はオープンソースソフトウェアです。以下の人々がこのプラグ
インに貢献しています。

貢献者

 *   [ Stoil Dobreff ](https://profiles.wordpress.org/sdobreff/)
 *   [ Roy Tanck ](https://profiles.wordpress.org/roytanck/)
 *   [ Mark Jaquith ](https://profiles.wordpress.org/markjaquith/)
 *   [ tflight ](https://profiles.wordpress.org/tflight/)
 *   [ mrwweb ](https://profiles.wordpress.org/mrwweb/)
 *   [ tekapo ](https://profiles.wordpress.org/tekapo/)

“Display Environment Type” は14ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/display-environment-type/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Display Environment Type” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/display-environment-type)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/display-environment-type/)
するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/display-environment-type/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/display-environment-type/)
を [RSS](https://plugins.trac.wordpress.org/log/display-environment-type/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.6.0 (2025-12-18)

 * コードの改善。Gutenberg メニューを追加。0 Day Analytics を導入しました。

#### 1.5.0 (2024-07-01)

 * コードの改善。`WP_DEBUG` 定数に関係なく定数の値を表示するようにしました。WP Control
   プラグインを導入しました。

#### 1.4.0 (2024-04-07)

 * コードの改善と UI の修正。モバイルでアイコンを表示し、「概要」ウィジェットに色
   を設定しました。ドロップダウンメニューに WordPress バージョンを追加しました。

#### 1.3.5 (2025-04-04)

 * WordPress 定数とその値 (有効 / 無効) を表示するドロップダウンサブメニューを追加
   しました。

#### 1.3.4 (2024-12-20)

 * 環境の表示名を変更するためのフィルターフックを追加しました (@erniecom に感謝)。

#### 1.3.3 (2024-07-05)

 * @tekapo による国際化の改善。

#### 1.3.2 (2023-11-10)

 * @mrwweb によるアクセシビリティの改善。

#### 1.3.1 (2022-03-30)

 * ツールバーが非表示の場合、フロントエンドでの CSS ファイルの読み込みをスキップ
   するようにしました (@tflight に感謝)。

#### 1.3 (2020-08-25)

 * コードのリファクタリング (@markjaquith に感謝)。
 * 環境タイプが購読者に対してデフォルトで非表示になりました。

#### 1.2.1 (2020-08-23)

 * 煩わしいホバーエフェクトを削除しました (@markjaquith に感謝)。
 * XSS に対するセキュリティ強化 (props @markjaquith)。

#### 1.2 (2020-08-21)

 * 環境を表示するかどうかを決定するためのフィルターフックを追加しました。

#### 1.1 (2020-08-21)

 * フロントエンドでの条件付き表示を追加しました (管理者のみ)。
 * プラグインの初期化を改善しました。

#### 1.0.2 (2020-08-21)

 * フロントエンドの管理バーでの (スタイルの当たっていない) 表示を削除しました。
 * readme ファイルに FAQ セクションを追加しました。

#### 1.0.1 (2020-08-21)

 * プラグインの説明とプラグイン URI を修正しました。

#### 1.0 (2020-08-20)

 * 最初のリリース。

## メタ

 *  バージョン **1.6.0**
 *  最終更新日 **4か月前**
 *  有効インストール数 **1,000+**
 *  WordPress バージョン ** 5.5またはそれ以降 **
 *  検証済み最新バージョン: **6.9.4**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/display-environment-type/)、
   [Dutch](https://nl.wordpress.org/plugins/display-environment-type/)、[Dutch (Belgium)](https://nl-be.wordpress.org/plugins/display-environment-type/)、
   [English (US)](https://wordpress.org/plugins/display-environment-type/)、[French (France)](https://fr.wordpress.org/plugins/display-environment-type/)、
   [German](https://de.wordpress.org/plugins/display-environment-type/)、[Japanese](https://ja.wordpress.org/plugins/display-environment-type/)、
   [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/display-environment-type/)、
   [Portuguese (Portugal)](https://pt.wordpress.org/plugins/display-environment-type/)、
   [Romanian](https://ro.wordpress.org/plugins/display-environment-type/)、[Russian](https://ru.wordpress.org/plugins/display-environment-type/)、
   [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/display-environment-type/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/display-environment-type/)、
   [Spanish (Venezuela)](https://ve.wordpress.org/plugins/display-environment-type/)、
   [Swedish](https://sv.wordpress.org/plugins/display-environment-type/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/display-environment-type)
 * タグ
 * [development](https://ja.wordpress.org/plugins/tags/development/)[environment](https://ja.wordpress.org/plugins/tags/environment/)
   [production](https://ja.wordpress.org/plugins/tags/production/)[staging](https://ja.wordpress.org/plugins/tags/staging/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/display-environment-type/advanced/)

## 評価

 5つ星中5つ星

 *  [  4 5-星レビュー     ](https://wordpress.org/support/plugin/display-environment-type/reviews/?filter=5)
 *  [  0 4-星レビュー     ](https://wordpress.org/support/plugin/display-environment-type/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/display-environment-type/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/display-environment-type/reviews/?filter=2)
 *  [  0 1-星レビュー     ](https://wordpress.org/support/plugin/display-environment-type/reviews/?filter=1)

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/display-environment-type/reviews/)

## 貢献者

 *   [ Stoil Dobreff ](https://profiles.wordpress.org/sdobreff/)
 *   [ Roy Tanck ](https://profiles.wordpress.org/roytanck/)
 *   [ Mark Jaquith ](https://profiles.wordpress.org/markjaquith/)
 *   [ tflight ](https://profiles.wordpress.org/tflight/)
 *   [ mrwweb ](https://profiles.wordpress.org/mrwweb/)
 *   [ tekapo ](https://profiles.wordpress.org/tekapo/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/display-environment-type/)