
前言介紹
- 這款 WordPress 外掛「Super Admin All Sites Menu」是 2021-10-13 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2025-03-12,距離現在已有 350 天。
- 外掛最低要求 WordPress 5.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
pers |
外掛標籤
multisite | management | superadmin |
內容簡介
不使用switch_to_blog(),即超級管理員所有網站菜單比 WP 管理工具欄我的網站菜單更快更節省資源。
子站點菜單數據在 IndexedDB 中本地儲存(我說它很快吧?)。當以下情況發生時會更新本地儲存:
啟用此外掛。
添加或刪除網站。
更改網站名稱。
IndexedDB 與網站變更非同步。
Restricted Site Access 已啟用或停用。
當子站點菜單數據更新時,會使用 AJAX 進行增量更新(每次更新 100 個站點)。
列出所有子站點。WP 管理工具欄我的網站僅列出您是本地管理員的站點。
將具有受限制站點訪問的站點用紅色圖示標記。
站點菜單按字母順序排序。
搜尋過濾器。
添加更多菜單選擇項:
在“網絡管理”下:
添加新網站
對於每個子站點:
“新頁面”
“使用者”
“外掛”
“設定”
先決條件
WordPress 多站點
現代瀏覽器,不支援 IE 11。
過濾器
您可以使用以下過濾器覆蓋預設值:
all_sites_menu_order_by
按排序方式排序。默認值為name,接受id、url或name
add_filter( 'all_sites_menu_order_by', function( string $order_by ) : string {
return 'url';
} );
all_sites_menu_load_increments
AJAX 加載增量。預設值為 100。
add_filter( 'all_sites_menu_load_increments', function( int $increments ) : int {
return 300;
} );
all_sites_menu_plugin_trigger
當啟用或停用插件時觸發本地儲存(IndexedDB)的更新。默認值為[ 'restricted-site-access/restricted_site_access.php' ]。
註:必須是數組,數組中的每個元素都必須指向主要的插件檔案。語法為'plugin-dir/plugin-file.php'
add_filter( 'all_sites_menu_plugin_trigger', function( array $plugins ) : array {
return [
'restricted-site-access/restricted_site_access.php',
'myplugin/myplugin.php',
];
} );
all_sites_menu_search_threshold
如果子站點少於 N 個,則不顯示搜索欄。默認值為 20。
add_filter( 'all_sites_menu_search_threshold', function( int $increments ) : int {
return 40;
} );
all_sites_menu_search_threshold
如果子站點少於 N 個,則不顯示搜索欄。默認值為 20。
add_filter( 'all_sites_menu_search_threshold', function( int $increments ) : int {
return 40;
} );
原文外掛簡介
Doesn’t use switch_to_blog(), i.e. Super Admin All Sites Menu is faster and uses less resources than the WP Admin Bar My Sites menu.
Subsite menu data are stored locally in IndexedDB (did I say it’s fast?). The local storage is updated when;
the plugin is activated.
a site is added or deleted.
you change a blog name.
IndexedDB is out of sync with site changes.
Restricted Site Access is activated or deactivated.
When subsite menu data is updated, AJAX is used and it’s done in increments (100 sites per increment).
List all subsites. WP Admin Bar My Sites only list sites you’re a local admin on.
Mark sites that has restricted site access with a red icon.
Sites menu is sorted alphabetically.
Search filter.
Add more menu choices:
Under “Network Admin”
Add New Site
Per subsite.
‘New Page’
‘Users’
‘Plugins’
‘Settings’
Prerequisite
WordPress Multisite
A modern browser, IE 11 isn’t supported.
Demo
A demo is available in WordPress Playground. It’s a bit slow loading, 50 subsites are added.
If you disable Super Admin All Sites Menu in the Main Site plugins menu, you’ll see the WP Admin Bar My Sites menu doesn’t allow you to scroll and see all sites. This is a 14-year-old (!) bug on WordPress.
If you activate the Restricted Site Access plugin (included), you’ll see a red icon next to the site name. ATM, this only works on the main site due to issues with WordPress Playground.
Filters
You can use the following filters to override the defaults:
all_sites_menu_order_by
Sort menu by. Default value is name, accepts id, url or name
add_filter( 'all_sites_menu_order_by', function( string $order_by ) : string {
return 'url';
} );
all_sites_menu_load_increments
AJAX load increments. Default value is 100.
add_filter( 'all_sites_menu_load_increments', function( int $increments ) : int {
return 300;
} );
all_sites_menu_plugin_trigger
Trigger an update of local storage (IndexedDB) when a plugin is (de)activated. Default is [ 'restricted-site-access/restricted_site_access.php' ].
Note: Must be an array and each element in the array must point to the main plugin file. Syntax 'plugin-dir/plugin-file.php'
add_filter( 'all_sites_menu_plugin_trigger', function( array $plugins ) : array {
return [
'restricted-site-access/restricted_site_access.php',
'myplugin/myplugin.php',
];
} );
all_sites_menu_search_threshold
Don’t display search field if there’s less than N subsites. Default value is 20.
add_filter( 'all_sites_menu_search_threshold', function( int $increments ) : int {
return 40;
} );
all_sites_menu_search_threshold
Don’t display search field if there’s less than N subsites. Default value is 20.
add_filter( 'all_sites_menu_search_threshold', function( int $increments ) : int {
return 40;
} );
all_sites_menu_force_refresh_expiration
How often a forced refresh should be taken. Default value is 3600. Set the value to 0 to disable forced refresh.
add_filter( 'all_sites_menu_force_refresh_expiration', function( int $seconds ) : int {
return 3600;
} );
Development
Active development of this plugin is handled on GitHub.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Super Admin All Sites Menu」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.4.9 | 1.5.0 | 1.6.0 | 1.6.1 | 1.6.2 | 1.6.4 | 1.6.5 | 1.6.6 | 1.6.7 | 1.6.9 | 1.7.2 | 1.7.3 | 1.8.0 | 1.8.1 | 1.8.2 | 1.8.3 | 1.8.4 | 1.8.5 | trunk | 1.4.10 | 1.4.11 | 1.4.12 | 1.4.13 | 1.4.14 | 1.4.15 | 1.4.16 | 1.4.17 | 1.4.18 | 1.4.19 | 1.4.20 | 1.4.21 | 1.4.22 | 1.4.23 | 1.4.24 | 1.4.25 | 1.4.26 | 1.4.27 | 1.4.28 |
延伸相關外掛(你可能也想知道)
Superadmin Helper 》此外掛目前提供以下功能:, , 記錄網路中的基本事件(請參閱 FAQ 以查看清單), 記錄 WordPress 發送的所有電子郵件, 在使用者個人資料頁面上更改使用者的主...。
Organizational Message Notifier 》這個外掛允許網路管理員發送組織訊息到網誌管理員內部管理頁面中。, 主要功能:, , 每位網誌管理員都會看到通知,直到他們將所有訊息標記為已讀。, 網路管理員...。
Logus Toolbox 》Logus Toolbox 外掛只能與 Logus 佈景主題 一起使用。, 關於我們, 如需協助或更多有關 Logus 的資訊,請前往 https://superadmin.es/contacto。, 聯繫和鳴謝,...。
CC-God-User 》這個外掛提供添加God Users權限,封鎖刪除選項和隱藏用戶列表中特定用戶的功能。只有God Users可以看到其他God Users或向常規管理員授予God權限。, 啟用插件...。Even More Privacy Options 》這個外掛正在為一個特定的網站開發,但它也可能對其他人有用。它旨在與More Privacy Options 3.2.1.1和Private Feed Keys 1.0結合使用,通過修改他們的行為來...。
