
Hide Updates
v1.1.5Upperdog · 2017年6月27日 上架
This plugin hides update notifications for core, plugin, and theme updates in the WordPress admin for all everyone except specified users.
- 正在使用
- 5,000+
- 评分
- 5.0 / 5
- 累计下载
- 4.6 万
- 最近更新
- 2024年3月19日
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' );