Title: Lock PHP Files
Author: rokundev
Published: <strong>2025 年 7 月 7 日</strong>
Last modified: 2025 年 7 月 7 日

---

搜索插件

![](https://s.w.org/plugins/geopattern-icon/lock-php-files.svg)

# Lock PHP Files

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

[下载](https://downloads.wordpress.org/plugin/lock-php-files.1.0.4.zip)

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

 [支持](https://wordpress.org/support/plugin/lock-php-files/)

## 描述

Secures your WordPress installation by:

 * Disabling theme/plugin editors via DISALLOW_FILE_EDIT
 * Blocking file modifications via DISALLOW_FILE_MODS
 * Removing editor menu items
 * Revoking file editing capabilities
 * Lightweight (only 3KB) with zero performance impact

## 安装

 1. Upload to `/wp-content/plugins/`
 2. Activate in WordPress admin
 3. File editing will be immediately disabled

## 常见问题

### How do I verify it’s working?

Try accessing /wp-admin/plugin-editor.php – you’ll see an error message.

### Can I temporarily enable editing?

Yes, either deactivate the plugin or modify wp-config.php.

### Will this affect updates?

No, automatic background updates still work.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ rokundev ](https://profiles.wordpress.org/rokundev/)

[帮助将「Lock PHP Files」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/lock-php-files)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.3

 * Updated tested version to 6.8
 * Fixed activation hook
 * Improved capability handling

#### 1.0.2

 * Added DISALLOW_FILE_MODS
 * Enhanced security layers

## 额外信息

 *  版本 **1.0.4**
 *  最后更新：**9 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **6.8.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/lock-php-files/)
 * 标签
 * [disable editor](https://cn.wordpress.org/plugins/tags/disable-editor/)[file editor](https://cn.wordpress.org/plugins/tags/file-editor/)
   [protection](https://cn.wordpress.org/plugins/tags/protection/)[secure](https://cn.wordpress.org/plugins/tags/secure/)
   [security](https://cn.wordpress.org/plugins/tags/security/)
 *  [高级视图](https://cn.wordpress.org/plugins/lock-php-files/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/lock-php-files/reviews/#new-post)

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

## 贡献者

 *   [ rokundev ](https://profiles.wordpress.org/rokundev/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/lock-php-files/)