[WordPress] 外掛分享: Show Environment in Admin Bar

WordPress 外掛 Show Environment in Admin Bar 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Show Environment in Admin Bar」是 2017-08-07 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2024-07-16,距離現在已有 292 天。
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 有 3 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

pbiron |

外掛標籤

admin | admin bar |

內容簡介

如果你跟我一樣,常常在不同的瀏覽器視窗中開啟同一個 WordPress 網站的不同版本,例如生產環境在一個視窗中,開發環境在另一個視窗中。

如果你也和我一樣,不知不覺在生產環境中編輯了內容,卻以為自己是在開發環境中進行編輯,或者反過來。

如果是這樣,那麼這個外掛就是為你而設的!

它會在管理工具列上加入當前環境的指示,比直接查看瀏覽器地址欄中的網址更容易識別。

預設行為

預設情況下,辨識兩種不同的環境:

生產

管理工具列上的節點有紅色背景(即,要小心你所進行的任何更改)。
如果未檢測到預備或開發或 QA 環境,則在管理工具列中顯示 Prod。

開發

管理工具列上的節點有綠色背景(即,進行更改是安全的)。
如果 WordPress 在 localhost 上運行(包括回送 IP 地址或 LAN IP 地址),則在管理工具列中顯示 Local。
如果 WP_DEBUG 定義為 true,則在管理工具列中顯示 Dev。

自訂預設行為

支援兩個額外的環境,但無法自動偵測:

預備

管理工具列上的節點有黃色背景(即,減慢速度,因為變更可能會進入生產網站中)。
有關如何啟用此環境的信息,請參閱文檔。

QA

管理工具列上的節點有藍色背景(即,“很酷”,你所做的更改不會影響生產網站)。
有關如何啟用此環境的信息,請參閱文檔。

原文外掛簡介

If you’re like me, you often have multiple versions of the same WordPress site open in different browser windows, e.g., production in one window and development in another window.
And if you’re like me, you have also unwittingly edited content in the production environment thinking you were doing so in the development environment or vice versa.
If so, then this plugin is for you!
It adds an indication of the current environment to the Admin Bar that is easier to see than examining the URL in your browser’s address bar.
Out-of-the-box behavior
Out-of-the-box, 2 different environments are recognized:

Production

The node added to the Admin Bar has a red background (i.e., Stop/be careful with any changes you make).
If neither a staging, QA, nor development environment is detected, then Prod is displayed in the Admin Bar.

Development

The node added to the Admin Bar has a green background (i.e., Go ahead, it is safe to make changes).
If WP is running on localhost (either a loopback IP address or LAN IP address), then Local displays in the Admin Bar.
If WP_DEBUG is defined & true, then Dev displays in the Admin Bar.

Customizing the out-of-the-box behavior
Two additional environments are supported, but cannot be automatically detected:

Staging

The node added to the Admin Bar has a yellow-ish background (i.e., Slow down, changes might make it into the production site).
For information on how to enable this environment, see the documentation.

QA

The node added to the Admin Bar has a blue background (i.e., “It’s cool”, changes you make won’t affect the production site).
For information on how to enable this environment, see the documentation.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Show Environment in Admin Bar」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.0.1 | 1.2.1 | trunk |

延伸相關外掛(你可能也想知道)

  • Redux Framework 》Redux – 快速在 WordPress 的 Gutenberg 中建立完整頁面, , 使用我們不斷更新的 WordPress 區塊模板、版面配置和模式強化 Gutenberg 編輯器。發現無限可能,...。
  • Loginizer 》Loginizer 是一個 WordPress 外掛,可幫助您對抗暴力攻擊,當 IP 地址達到最大重試次數時,該外掛會阻止其登錄。您可以使用 Loginizer 將 IP 地址列入黑名單...。
  • LightStart – Maintenance Mode, Coming Soon and Landing Page Builder 》這款 WordPress 外掛可讓您在維護網站時顯示一個維護頁面,讓訪客知道您的網站是暫時關閉的,也可以為新網站新增「即將到來」頁面,同時也可為現有網站創建登...。
  • Admin Menu Editor 》Admin Menu Editor 可讓您手動編輯儀表板菜單。您可以重新排序菜單,顯示/隱藏特定項目,修改權限等等。, 功能, , 更改菜單標題、URL、圖標、CSS 類等。, 通...。
  • White Label CMS 》White Label CMS 外掛針對開發者設計,提供客戶更具個性化且易於使用的內容管理系統。, 詳細瞭解 2.0 版本外掛變更,請參閱 Video User Manuals 網站。, 功能...。
  • Orbit Fox by ThemeIsle 》透過Orbit Fox,您可以使用各種模組擴充您的主題功能,例如社交媒體分享按鈕和圖示、自訂選單圖示、頁首和頁尾腳本、一鍵導入頁面模板、頁面建構器附加元件和...。
  • InfiniteWP Client 》InfiniteWP 可讓使用者從自己的伺服器管理無限數量的 WordPress 網站。, 主要功能:, , 自行託管系統:位於您自己的伺服器上,完全受您控制, 一鍵更新所有網站...。
  • Header and Footer Scripts 》如果您正在運行 WordPress 網站,早晚都需要將某種代碼插入到您的網站上。最有可能的是網頁分析代碼,例如 Google Analytics,或者是社交媒體腳本、某些 CSS ...。
  • Admin Columns 》這個 WordPress 外掛可以管理並整理文章、使用者、評論及媒體列表的欄位。它讓 WordPress 後台界面變得更美觀、明確。, , Admin Columns Pro, Admin Columns ...。
  • Nested Pages 》Nested Pages 是什麼?, , , 提供直覺且易於操作的拖放介面,以管理網頁結構及文章排序, 增強了快速編輯功能, 新增可編輯、可排序的樹狀表示網站頁面結構, 會...。
  • Disable REST API 》這是最全面的 WordPress REST API 存取控制外掛!, 輕鬆安裝,安裝後不需要額外設定即可使用。只需上傳並啟用,整個 REST API 將無法被一般訪客存取。, 但如...。
  • Advanced Custom Fields: Extended 》🚀 全方位增強套件,可改進WordPress和Advanced Custom Fields。此外掛旨在提供一個強大的管理框架,涵蓋了眾多改進和優化。, 此外掛需要至少 ACF Pro 5.8。,...。
  • Widget Shortcode 》這個短碼需要小工具的ID,但不需要猜測,外掛會為你生成代碼。如果你想要覆蓋小工具的標題,你可以使用 "title" 參數:, [widget id=”text-1″...。
  • All In One Favicon 》查看最新的WordPress交易以優化您的網站。, All In One Favicon為您的網站和管理頁面添加favicon。, 您可以使用您已經上傳的favicon或使用內置的上傳機制將fa...。
  • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。

文章
Filter
Apply Filters
Mastodon