Title: Version Locker
Author: Vishal Paswan
Published: <strong>2026 年 1 月 8 日</strong>
Last modified: 2026 年 4 月 11 日

---

搜索插件

![](https://ps.w.org/version-locker/assets/banner-772x250.png?rev=3463341)

![](https://ps.w.org/version-locker/assets/icon.svg?rev=3463341)

# Version Locker

 作者：[Vishal Paswan](https://profiles.wordpress.org/alphadev01/)

[下载](https://downloads.wordpress.org/plugin/version-locker.1.2.2.zip)

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

 [支持](https://wordpress.org/support/plugin/version-locker/)

## 描述

Version Locker lets you lock specific plugins and themes to their current version.
Once locked, they won’t update automatically or manually until you unlock them.

Useful for keeping your site stable when you have customized plugins, client sites,
or production environments where you need control over when things update.

### What It Does

 * Lock individual plugins to prevent updates
 * Lock individual themes to prevent updates
 * Block all plugin updates at once (global killswitch)
 * Block all theme updates at once (global killswitch)
 * Block WordPress core updates (global killswitch)
 * Quick toggle locks on/off without page reload
 * Bulk lock or unlock multiple items
 * Email alerts when locked items try to update
 * Search and filter your plugins and themes
 * Activity log showing who locked what and when
 * Works on Multisite (each site has its own locks)

### How It Works

The plugin uses WordPress filters to hide update notifications and block update 
attempts. It doesn’t modify any plugin or theme files.

### Credits

Thanks to [Nemai Naskar](https://profiles.wordpress.org/nemai/) for testing and 
feedback on 1.2.2.

## 安装

 1. Install through WordPress Plugins screen or upload to `/wp-content/plugins/`
 2. Activate the plugin
 3. Go to **Tools  Version Locker**
 4. Toggle locks on or off for plugins and themes

## 常见问题

### Does this modify plugin or theme files?

No. It only uses WordPress filters to control update behavior.

### Will locked items still show update available?

You’ll see a small indicator that an update exists, but the update button won’t 
appear.

### Can I still update a locked item?

Yes, just unlock it first. Updates work normally once unlocked.

### What’s the difference between locking one item vs using the killswitch?

Locking targets specific items. The killswitch disables ALL plugin updates, ALL 
theme updates, or core updates site-wide.

### Does this work on Multisite?

Yes. Each site has its own independent locks.

### What happens if I delete the plugin?

By default, all locks and settings are preserved on uninstall. To delete all data
on removal, enable “Delete all data on uninstall” in the Settings tab before uninstalling.

### What changed from 1.2.1?

Theme locking, global killswitches, email notifications, quick toggles, bulk actions,
Multisite support, and a rebuilt codebase. All existing locks carry over automatically.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Vishal Paswan ](https://profiles.wordpress.org/alphadev01/)

[帮助将「Version Locker」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/version-locker)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.2.2 – 2026-01-24

**New**

 * Theme locking — lock individual themes just like plugins
 * Global killswitches — disable all plugin, all theme, or core updates with a single
   toggle
 * Email notifications — get alerted when a locked item tries to update
 * Quick toggle — lock or unlock without a page reload
 * Bulk lock/unlock — select multiple items and toggle them at once
 * Auto-lock for newly installed plugins (optional)
 * Live search and filter on plugins and themes tabs
 * Multisite support — each site manages its own locks independently
 * Audit log now available on all sites (previously multi-admin only)
 * Audit log CSV export
 * Rate limiting on AJAX actions to prevent abuse

**Improvements**

 * Rebuilt with a proper class-based structure (autoloader, services, failsafe layer)
 * Error handling now catches bootstrap failures and shows a graceful admin notice
   instead of crashing
 * Improved input validation across all form submissions and AJAX handlers
 * Added `VLOCKER_DISABLE_ALL` constant as an emergency kill switch (define in wp-
   config.php)
 * Better performance through caching
 * PHP requirement lowered from 7.4 to 7.0
 * Uninstall behavior changed to safe-by-default — data is now preserved on removal
   unless you opt in to deletion from the Settings tab

**Security**

 * Separate capability checks per tab (plugins, themes, settings)
 * AJAX nonce verification on all endpoints
 * CSV injection protection on audit log export
 * Transient-based rate limiting on quick toggle and test email

#### 1.2.1

 * Initial release
 * Plugin locking only (no theme support)
 * Audit log for multi-admin sites only

## 额外信息

 *  版本 **1.2.2**
 *  最后更新：**2 月前**
 *  活跃安装数量 **30+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/version-locker/)
 * 标签
 * [disable updates](https://cn.wordpress.org/plugins/tags/disable-updates/)[Update Manager](https://cn.wordpress.org/plugins/tags/update-manager/)
   [version control](https://cn.wordpress.org/plugins/tags/version-control/)
 *  [高级视图](https://cn.wordpress.org/plugins/version-locker/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Vishal Paswan ](https://profiles.wordpress.org/alphadev01/)

## 支持

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

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