Title: Locker Content — Content Locking &amp; Engagement Gates
Author: AppGlut
Published: <strong>2025 年 9 月 26 日</strong>
Last modified: 2026 年 5 月 24 日

---

搜索插件

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

![](https://ps.w.org/locker-content/assets/icon-256x256.png?rev=3420675)

# Locker Content — Content Locking & Engagement Gates

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

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

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

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

## 描述

**Locker Content** is a powerful WordPress plugin that allows you to lock your valuable
content behind various engagement gates. Increase user interaction, gather user-
generated content, and protect premium content with multiple locking mechanisms.

**Key Features:**

✅ **Password Protection** – Secure your content with password locks
 ✅ **Agreement
Lock** – Require users to accept terms and conditions ✅ **Post Creation Lock** –
Users must create content to unlock yours ✅ **GDPR Compliant** – Built with privacy
and data protection in mind ✅ **Rate Limiting** – Prevent abuse with built-in rate
limiting ✅ **Spam Protection** – Advanced spam detection for user submissions ✅**
Responsive Design** – Works perfectly on all devices ✅ **Admin Dashboard** – Manage
all submissions from one place

**Perfect For:**

 * **Content Creators** – Protect premium content and courses
 * **Marketers** – Generate leads through content gates
 * **Community Sites** – Encourage user participation and content creation
 * **Educational Sites** – Require agreement to terms before accessing materials
 * **Membership Sites** – Control access to exclusive content

**Available Lock Types:**

 1. **Password Lock** – Traditional password protection with enhanced security features
 2. **Agreement Lock** – Require users to read and agree to terms, privacy policies,
    or disclaimers
 3. **Post Creation Lock** – Users must submit original content to unlock your premium
    material

**Security Features:**

 * Password hashing for secure storage
 * Rate limiting to prevent brute force attacks
 * CSRF protection with WordPress nonces
 * Input sanitization and validation
 * IP anonymization for GDPR compliance
 * Spam detection and filtering

**Admin Features:**

 * Easy-to-use meta boxes for each post/page
 * Bulk approval/rejection of user submissions
 * Detailed submission tracking
 * Customizable messages and interface text
 * Template override support for developers

### Developer Information

**Template Override Support**

You can override plugin templates by creating files in your theme:

    ```
    your-theme/
    ├── lockerco/
    │   ├── frontend/
    │   │   ├── password-lock.php
    │   │   ├── agreement-lock.php
    │   │   └── postlock-lock.php
    │   └── admin/
    │       ├── password-fields.php
    │       ├── agreement-fields.php
    │       └── postlock-fields.php
    ```

**Action Hooks**

 * `lockerco_post_submitted` – Fires when a user submits a post through the post
   lock

**Filter Hooks**

 * `lockerco_password_strength` – Modify password strength requirements
 * `lockerco_spam_patterns` – Add custom spam detection patterns

**CSS Classes**

 * `.lockerco-container` – Main container for all lock types
 * `.password-locker` – Password lock specific styling
 * `.agreement-locker` – Agreement lock specific styling
 * `.postlock-locker` – Post creation lock specific styling

**Security Features**

 * CSRF protection with WordPress nonces
 * Input sanitization using WordPress functions
 * Rate limiting to prevent abuse
 * Password hashing for secure storage
 * IP anonymization for privacy compliance

### Support

For support, feature requests, or bug reports, please visit our support forum or
contact us through the plugin’s official page.

**Minimum Requirements:**
 * WordPress 4.7 or higher * PHP 7.0 or higher * MySQL
5.6 or higher

**Recommended:**
 * WordPress 6.0 or higher * PHP 8.0 or higher * MySQL 8.0 or higher

## 安装

 1. Upload the plugin files to `/wp-content/plugins/lockerco/` directory, or install
    through the WordPress plugins screen
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Edit any post or page to see the Locker Content meta box
 4. Configure your desired lock type and settings
 5. Save your post and view it on the frontend to see the lock in action

## 常见问题

### How do I set up a password lock?

 1. Edit your post or page
 2. Find the “Locker Content” meta box
 3. Check “Enable Password Protection”
 4. Set your password and customize the message
 5. Save your post

### Can I use multiple lock types on the same post?

The plugin prioritizes lock types in this order: Password (priority 10), Agreement(
priority 15), Post Creation (priority 40). Only the highest priority enabled lock
will be active.

### Are passwords stored securely?

The plugin stores content lock passwords in the post meta table. For improved security,
use a role manager plugin to restrict access to the post editor for non-admin users.

### How does the spam protection work?

The plugin includes multiple spam detection methods:
 * Pattern matching for common
spam phrases * Link count limits * Excessive repetition detection * Capitalization
analysis * Rate limiting per IP and user

### Is the plugin GDPR compliant?

Yes! The plugin includes GDPR compliance features:
 * IP address anonymization *
Minimal data collection * User consent tracking * Data retention controls

### Can I customize the appearance?

Yes! The plugin includes CSS classes for styling and supports template overrides.
You can create custom templates in your theme’s directory.

### How do I view user submissions?

Go to Posts > User Submissions in your WordPress admin to view, approve, or reject
user-generated content.

### What happens to user submissions?

User submissions are created as draft posts by default and require manual approval.
You can bulk approve, reject, or mark them as pending from the admin interface.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Locker Content — Content Locking & Engagement Gates」是开源软件。 以下人员对此
插件做出了贡献。

贡献者

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

[帮助将「Locker Content — Content Locking & Engagement Gates」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/locker-content)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.2

 * SECURITY: Passwords now stored using WordPress password hashing for improved 
   security
 * SECURITY: Removed debug logging code that could expose sensitive information
 * SECURITY: Replaced direct SQL queries with WordPress APIs for safer database 
   operations
 * FIXED: Admin metabox lock type options now display correctly on first selection
 * FIXED: Admin asset enqueue hook now properly matches plugin menu slug
 * FIXED: JavaScript filename case mismatch corrected for admin scripts
 * REFACTOR: Improved code organization by moving initialization to Bootstrap class
 * REFACTOR: Simplified main plugin file for better maintainability

#### 1.0.1

 * SECURITY: Fixed critical information exposure vulnerability (CVE-2025-12525) 
   in post creation locker
 * Prevents unauthenticated attackers from accessing protected content without admin
   approval
 * Added admin unlock functionality for content management
 * Enhanced security checks and validation
 * Fixed Plugin Check warnings and coding standards issues
 * Removed debug code and improved variable naming conventions

#### 1.0.0

 * Initial release
 * Password protection with secure hashing
 * Agreement lock with customizable terms
 * Post creation lock with spam protection
 * Rate limiting and security features
 * GDPR compliance features
 * Admin submissions management
 * Responsive design and mobile support

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**4 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **7.1**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/locker-content/)
 * 标签
 * [content locker](https://cn.wordpress.org/plugins/tags/content-locker/)[password protection](https://cn.wordpress.org/plugins/tags/password-protection/)
   [post lock](https://cn.wordpress.org/plugins/tags/post-lock/)[user engagement](https://cn.wordpress.org/plugins/tags/user-engagement/)
 *  [高级视图](https://cn.wordpress.org/plugins/locker-content/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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