[WordPress] 外掛分享: Where

首頁外掛目錄 › Where
WordPress 外掛 Where 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
1691 天前
最後更新
問題解決
WordPress 5.2+ PHP 5.6+ v1.0.1 上架:2021-08-25

內容簡介

在管理列顯示您的 WordPress 站點的環境類型。

可用的篩選器

‘where_env_should_add_env_type’ – 如果使用者是管理員且管理列正在顯示,則預設為 True。篩選此項可讓不同的角色檢視。
‘where_env_environment_type’ – 修改環境類型。如果您使用的是舊版的 WP,沒有 ‘get_environment_type’ 函式,您還需要使用此篩選器。
‘where_env_styles’ – 不同環境類型可使用的顏色/圖示陣列。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Where」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Display your WordPress site’s environment type in the admin bar.
Available Filters
‘where_env_should_add_env_type’ – Defaults to true if the user is an admin and the admin bar is showing. Filter this to allow different roles to view as well.
‘where_env_environment_type’ – Modify the environment type. You’ll also need to use this filter if you’re running an older version of WP that doesn’t have the ‘get_environment_type’ function.
‘where_env_styles’ – An array of colors/icons to use for the different environment types.

延伸相關外掛

文章
Filter
Mastodon