Title: Hide Updates
Author: Upperdog
Published: <strong>2017 年 6 月 27 日</strong>
Last modified: 2024 年 3 月 19 日

---

搜索插件

![](https://ps.w.org/hide-updates/assets/banner-772x250.png?rev=1686202)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/hide-updates/assets/icon-256x256.png?rev=1686202)

# Hide Updates

 作者：[Upperdog](https://profiles.wordpress.org/upperdog/)

[下载](https://downloads.wordpress.org/plugin/hide-updates.1.1.5.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-updates/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-updates/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-updates/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-updates/#developers)

 [支持](https://wordpress.org/support/plugin/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' );
    ```

## 安装

 1. Upload the `hide-updates` directory to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## 常见问题

### Who is this plugin for?

This plugin is aimed for developers and agencies who manage core, plugin, and translation
updates through Composer or remote management services like ManageWP.

### Why would you want to hide updates?

If you’re a developer or agency responsible for updating client sites, you may want
to hide updates for other users who should not install updates.

### Can I choose to hide only some types of updates?

No. All updates will be hidden.

## 评价

![](https://secure.gravatar.com/avatar/690c6e8751ce99c9897ad652784ffab2afd4d32cc9b9cdf7987d74412fc8c870?
s=60&d=retro&r=g)

### 󠀁[Works like a charm](https://wordpress.org/support/topic/works-like-a-charm-2362/)󠁿

 [icecreamjelly](https://profiles.wordpress.org/icecreamjelly/) 2024 年 11 月 10
日

Plug and play, works like a charm. Hope this does not get taken down. Thanks.

![](https://secure.gravatar.com/avatar/a14f527b3997ec0efc00b13e2a23b0560f9eea7fec46f2661d3a75ebc565cfe1?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-38365/)󠁿

 [aldrinhart](https://profiles.wordpress.org/aldrinhart/) 2024 年 1 月 25 日

Very useful to keep calm clients

![](https://secure.gravatar.com/avatar/9e7bf080dee5b8b1ebc09cacf31b7f8c1871d9f50ac549a9e217b0ed131ef562?
s=60&d=retro&r=g)

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-22209/)󠁿

 [Tom](https://profiles.wordpress.org/tom-van-m/) 2019 年 6 月 24 日

Exactly what I was looking for!

![](https://secure.gravatar.com/avatar/154859129a2672a4d2642930f62ae125efe91f27acf231c129fb43e94cb38f47?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-6068/)󠁿

 [Interpro](https://profiles.wordpress.org/interpro/) 2019 年 5 月 10 日

Installed, activated, worked. Thanks!!

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/hide-updates/reviews/)

## 贡献者及开发者

「Hide Updates」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Upperdog ](https://profiles.wordpress.org/upperdog/)
 *   [ Emil Gustafsson ](https://profiles.wordpress.org/gesen/)

[帮助将「Hide Updates」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-updates)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-updates/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/hide-updates/)，或通过[RSS](https://plugins.trac.wordpress.org/log/hide-updates/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-updates/)。

## 更新日志

#### 1.1.5

 * Release date: 2019-12-18
 * Minor refactoring and coding standards overhaul.
 * Align Github and WordPress.org version release numbers.

#### 1.1.4

 * Release date: 2019-05-28
 * Check if user is logged in before enqueuing plugin CSS. Thanks Vincent Klaiber(
   @vinkla) for the help!

#### 1.1.3

 * Release date: 2018-10-28
 * Avoid error if default user with ID 1 doesn’t exist.

#### 1.1.2

 * Release date: 2018-10-21
 * Add first registered user (usually the one who installed the site) as default
   user allowed to see updates.
 * Add more precise CSS selector for hiding plugin updates in admin menu to avoid
   breaking other plugins using the .update-plugins class on other notifications.

#### 1.1.1

 * Release date: 2018-10-21
 * Remove include of wp-includes/pluggable.php to be able to use wp_get_current_user().
   Unnecessary to include file.

#### 1.1

 * Release date: 2018-10-21
 * Add filter to define users allowed to see updates.
 * Hide update notifications using CSS to enable usage of remote management services
   like ManageWP and others. Previous solution used pre_site_transient_update_* 
   filters and nulled all values making it impossible for remote management services
   to read updates.

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.1.5**
 *  最后更新：**2 年前**
 *  活跃安装数量 **6,000+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-updates/)
 * 标签
 * [core updates](https://cn.wordpress.org/plugins/tags/core-updates/)[notices](https://cn.wordpress.org/plugins/tags/notices/)
   [Plugin Updates](https://cn.wordpress.org/plugins/tags/plugin-updates/)[update](https://cn.wordpress.org/plugins/tags/update/)
   [updates](https://cn.wordpress.org/plugins/tags/updates/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-updates/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/hide-updates/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-updates/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-updates/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/hide-updates/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/hide-updates/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-updates/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-updates/reviews/)

## 贡献者

 *   [ Upperdog ](https://profiles.wordpress.org/upperdog/)
 *   [ Emil Gustafsson ](https://profiles.wordpress.org/gesen/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-updates/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://paypal.me/gesen)