
內容簡介
在管理列顯示您的 WordPress 站點的環境類型。
可用的篩選器
‘where_env_should_add_env_type’ – 如果使用者是管理員且管理列正在顯示,則預設為 True。篩選此項可讓不同的角色檢視。
‘where_env_environment_type’ – 修改環境類型。如果您使用的是舊版的 WP,沒有 ‘get_environment_type’ 函式,您還需要使用此篩選器。
‘where_env_styles’ – 不同環境類型可使用的顏色/圖示陣列。
外掛標籤
開發者團隊
原文外掛簡介
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.
