[WordPress] 外掛分享: Hide Updates

首頁外掛目錄 › Hide Updates
WordPress 外掛 Hide Updates 的封面圖片
6,000+
安裝啟用
★★★★★
5/5 分(4 則評價)
721 天前
最後更新
問題解決
WordPress 3.0+ v1.1.5 上架:2017-06-26

內容簡介

這個外掛可以在 WordPress 管理介面中隱藏核心、外掛程式和佈景主題的更新通知。該外掛對於透過 Composer 或遠程管理服務如 ManageWP 管理更新的開發人員和代理商非常有用。此外,他們可能希望為其他使用者隱藏更新通知。

功能

隱藏 WordPress 核心更新通知。
隱藏外掛更新通知。
隱藏佈景主題更新通知。
隱藏管理選單和管理列中的更新連結。
禁止未經授權的使用者存取更新頁面。
讓開發人員指定哪些使用者可以看到更新通知。

值得注意的事項

這個外掛是提供給開發人員和代理商使用的,他們有很好的理由來隱藏更新通知,例如他們透過 Composer 或遠程管理服務如 ManageWP 來管理更新。此外,該外掛已經在 ManageWP 中進行測試,但 ManageWP 必須使用允許查看更新的使用者帳號來連接網站。

指定允許存取的使用者

預設情況下,這個外掛會允許第一個註冊使用者(安裝網站的使用者)可以查看更新通知。開發人員可以使用 hide_updates_allowed_users 過濾器來指定哪些使用者可以查看更新通知。

以下的範例將只允許帳號名稱為 "bill" 和 "melinda" 的使用者查看更新通知:

function site_hide_updates_allowed_users() {
$allowed_users = array( 'charlotte', 'bob' );
return $allowed_users;
}
add_filter( 'hide_updates_allowed_users', 'site_hide_updates_allowed_users' );

外掛標籤

開發者團隊

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

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

原文外掛簡介

This plugin hides update notifications for core, plugin, and theme updates in the WordPress admin. It’s useful for developers and agencies who manage updates through Composer or remote management services like ManageWP, and therefore wants to hide update notices for other users.
Features

Hides WordPress core update notices.
Hides plugin update notices.
Hides theme update notices.
Hides updates link in admin menu and admin bar.
Blocks access to the updates page for users who are not allowed to see updates.
Enables developers to specify which users can see updates.

Worth noting
This plugin is intended for developers and agencies who have good reasons for hiding the updates, for example if they manage updates through Composer or remote management services like ManageWP. This plugin has been tested with ManageWP and ManageWP needs to connect to the site with a user account that is allowed to see updates.
Specify allowed users
By default, the plugin allows the first registered user (the one who installed the site) to see updates. Developers can use the hide_updates_allowed_users filter to specify which users are allowed to see update notifications.
The following example will allow only users with usernames bill and melinda to see updates:
function site_hide_updates_allowed_users() {
$allowed_users = array( 'charlotte', 'bob' );
return $allowed_users;
}
add_filter( 'hide_updates_allowed_users', 'site_hide_updates_allowed_users' );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon