前言介紹
- 這款 WordPress 外掛「Show Me The Admin」是 2016-02-06 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2017-11-20,距離現在已有 2723 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
- 有 6 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
bar | admin | toolbar | adminbar | admin bar |
內容簡介
WordPress 工具列讓在網站檢視與編輯之前互相切換很容易,但有時這個工具列本身可能會顯得很突兀。
「Show Me The Admin」是一個 WordPress 外掛,它可以隱藏工具列並讓你使用多種方式讓它出現與消失。
功能包括:
隱藏工具列,並透過輸入特定單字讓其出現
隱藏工具列,讓 WordPress 按鈕出現在左上角,點擊即可顯示
隱藏工具列,當滑鼠接近視窗頂部時讓其出現
「Show Me The Admin」也支援多站點,請到Show Me The Admin GitHub 庫參與討論、提交問題,並提出建議。
你需要啟用「當檢視網站時顯示工具列」的使用者設定。
篩選器
「Show Me The Admin」使用特定篩選器,讓你微調外掛。
篩選設定
/**
* 篩選「Show Me The Admin」的設定。
*
* @param array - $settings - 原始設定
* @return array - 篩選後的設定
*/
add_filter( 'show_me_the_admin_settings', 'filter_show_me_the_admin_settings' );
function filter_show_me_the_admin_settings( $settings ) {
// 修改設定
// 例如,將顯示工具列的單字改成「showme」
$settings[ 'show_phrase' ] = 'hello';
// 或者,將隱藏工具列的單字改成「hideme」
$settings[ 'hide_phrase' ] = 'goodbye';
// 回傳設定
return $settings;
}
篩選顯示工具列的單字
/**
* 篩選顯示工具列的單字。
*
* @param string - $show_phrase - 原始單字
* @return string - 篩選後的單字
*/
add_filter( 'show_me_the_admin_show_phrase', 'filter_show_me_the_admin_show_phrase' );
function filter_show_me_the_admin_show_phrase( $show_phrase ) {
// 修改單字,預設為「showme」
$show_phrase = 'hello';
// 回傳單字
return $show_phrase;
}
篩選隱藏工具列的單字
/**
* 篩選隱藏工具列的單字。
*
* @param string - $hide_phrase - 原始單字
* @return string - 篩選後的單字
*/
add_filter( 'show_me_the_admin_hide_phrase', 'filter_show_me_the_admin_hide_phrase' );
function filter_show_me_the_admin_hide_phrase( $hide_phrase ) {
// 修改單字,預設為「hideme」
$hide_phrase = 'goodbye';
// 回傳單字
return $hide_phrase;
}
篩選下拉式登入按鈕文字
/**
* 篩選「Show Me The Admin」下拉式登入按鈕文字。
*
* @param string - $text - 原始文字
* @return string - 篩選後的文字
*/
add_filter( 'show_me_the_admin_login_text', 'filter_show_me_the_admin_login_text' );
function filter_show_me_the_admin_login_text( $text ) {
// 修改文字,預設為「Login to WordPress」
$text = 'Login to the admin';
// 回傳文字
return $text;
}
原文外掛簡介
The WordPress toolbar makes it really easy to move between viewing your site and editing your site but sometimes the toolbar itself can be intrusive.
“Show Me The Admin” is a WordPress plugin that hides your toolbar and enables you to make it appear, and disappear, using a variety of methods.
Features include:
Hide your toolbar and make it appear by typing a phrase
Hide your toolbar and show WordPress button in top left corner to click to appear
Hide your toolbar and make it appear when mouse hovers near top of window
Show Me The Admin is also multisite-friendly. Please use the Show Me The Admin GitHub repo to contribute, submit issues, and suggest features.
Your “Show Toolbar when viewing site” profile setting must be enabled.
Filters
Show Me The Admin has filters setup to allow you to tweak the plugin.
Filter the settings
/**
* Filters the "Show Me The Admin" settings.
*
* @param array - $settings - the original settings
* @return array - the filtered settings
*/
add_filter( 'show_me_the_admin_settings', 'filter_show_me_the_admin_settings' );
function filter_show_me_the_admin_settings( $settings ) {
// Change the settings
// For example, change the phrase you type to show the toolbar, default is 'showme'
$settings[ 'show_phrase' ] = 'hello';
// Or change the phrase you type to hide the toolbar, default is 'hideme'
$settings[ 'hide_phrase' ] = 'goodbye';
// Return the settings
return $settings;
}
Filter the phrase to show the toolbar
/**
* Filters the phrase to show the toolbar.
*
* @param string - $show_phrase - the original phrase
* @return string - the filtered phrase
*/
add_filter( 'show_me_the_admin_show_phrase', 'filter_show_me_the_admin_show_phrase' );
function filter_show_me_the_admin_show_phrase( $show_phrase ) {
// Change the phrase, default is 'showme'
$show_phrase = 'hello';
// Return the phrase
return $show_phrase;
}
Filter the phrase to hide the toolbar
/**
* Filters the phrase to hide the toolbar.
*
* @param string - $hide_phrase - the original phrase
* @return string - the filtered phrase
*/
add_filter( 'show_me_the_admin_hide_phrase', 'filter_show_me_the_admin_hide_phrase' );
function filter_show_me_the_admin_hide_phrase( $hide_phrase ) {
// Change the phrase, default is 'hideme'
$hide_phrase = 'goodbye';
// Return the phrase
return $hide_phrase;
}
Filter the text for the dropdown login button
/**
* Filters the text for the "Show Me The Admin"
* dropdown login button.
*
* @param string - $text - the original text
* @return string - the filtered text
*/
add_filter( 'show_me_the_admin_login_text', 'filter_show_me_the_admin_login_text' );
function filter_show_me_the_admin_login_text( $text ) {
// Change the text, default is 'Login to WordPress'
$text = 'Login to the admin';
// Return the text
return $text;
}
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Show Me The Admin」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.0 | 1.1.1 | 1.1.2 | 1.2.0 | 1.2.1 | trunk |
延伸相關外掛(你可能也想知道)
Simple Banner – Easily add multiple Banners/Bars/Notifications/Announcements to the top or bottom of your website 》這個外掛可輕鬆在你的網站頂部顯示簡單的公告橫幅或資訊欄。你可以在設定內輕鬆自訂鏈結、文字和橫幅背景的顏色。你也可以自訂你想要的樣式,並加入自己的自...。
Top Bar 》簡單方便地為您的網站添加頂部欄。這款外掛會在您的網站頂部添加一個簡單乾淨的通知欄,讓您向訪客顯示一條友好的信息和自定義鏈接。您所看到的就是您所得的...。
Announcer – Sticky Message Banner, Notification Bar – Add to Top, Bottom of your Website 》使用 Announcer 外掛程式,您可以在網站上新增美觀且專業的通知條。您可以顯示自訂的訊息,例如促銷活動、Cookie 使用注意事項、歡迎訊息、隱私權政策聲明等...。
Convertful – Your Ultimate On-Site Conversion Tool 》he All-In-One 工具,將您的訪客轉化為銷售機會和銷售額, Convertful是一個提供現代在站內轉換解決方案,並直接與所有主要電子郵件行銷平台集成,並提供最簡...。
Notification Bar, Announcement and Cookie Notice WordPress Plugin – FooBar 》FooBar 外掛讓你可以創建無限制搶眼的通知欄、公告和 Cookie 注意事項,以引起訪客的注意。FooBar 從頭開始完全重寫,為你提供嶄新和現代化的通知。, , 前往 ...。
Announcement Bar 》此外掛新增了一個 jQuery 檔案,每次頁面載入時都會在您瀏覽器螢幕頂端添加一個固定標誌列,用於顯示自訂文章類別 (CPT) 的公告。該標誌列由簡單的 HTML 和 J...。
Easy Charts 》這個外掛是一個易於使用、功能強大的方式,可用於生成圖表並在您的網站頁面和文章中展示。使用此外掛創建的圖表易於創建,易於管理。, 使用SVG和CSS3轉換創建...。
Responsive Notification Bar Plugin for WordPress – Apex Notification Bar Lite 》產品頁面 | 演示 | 文件 | 高級版, Apex Notification Bar Lite, 使用 Apex Notification Bar Lite 在您的 WordPress 網站中添加外觀精美的單一通知欄。, , 5...。
QuickieBar 》p>, 快速地在您的網站上加入一個強大的下拉式轉換欄,開始轉換訪客。在您的網站頂部或底部顯示一個吸引人的訂閱欄,將訪客的注意力吸引過來,並將他們引導到...。
Disable Admin Bar 》這個外掛可以禁用出現在 WordPress 網誌公開頁面上的管理工具列。, 為了方便整合,只需將外掛檔案放入 wp-content/mu-plugins 目錄(如果需要的話創建該目錄...。
Top-Bar CodeBulls 》這是一個最簡單的方式在你的網站上增加一個頂部欄。, 這個外掛可以:, 更改頂部欄的分段數字 (欄); 可以是 1、2 或 3。, 新增自訂的 HTML 或 WordPress 短代...。
Bottom Admin Toolbar 》讓工具列永遠停留在底部!, 原生 WordPress 無法更改管理工具列的位置。這個簡單的外掛讓您可以將它永久固定在底部,並透過快速鍵隱藏它!, 主要特色:, , 固...。
Menu Bar Cart Icon For WooCommerce By Binary Carpenter 》如欲於您的 WooCommerce 网站导航菜单、页脚、侧边栏加入購物車图示,這款外掛便可滿足您的需求。, , 如何在幾分鐘內添加購物車圖示?, , 为何需要具備菜单栏...。
WEN Skill Charts 》WEN Skill Charts 可協助您顯示美觀的動畫技能條和圓形圖表。有多種選項可供自定義圖表。您可以輕鬆從管理面板中添加/編輯/刪除/重新排序技能項目。您可以在...。
Notice Bar 》Notice Bar 是一個簡單又功能強大的插件,可以在 WordPress 網站上創建和顯示自定義的通知條。它幫助網站管理員能夠迅速有效地傳達通知、信息和消息給遊客。...。