Title: 部分内容加密
Author: sosel
Published: <strong>July 11, 2022</strong>
Last modified: September 12, 2025

---

Search plugins

![](https://ps.w.org/part-content-encryption/assets/banner-772X250.png?rev=3359689)

![](https://ps.w.org/part-content-encryption/assets/icon.svg?rev=2754345)

# 部分内容加密

 By [sosel](https://profiles.wordpress.org/sosel/)

[Download](https://downloads.wordpress.org/plugin/part-content-encryption.1.4.1.zip)

 * [Details](https://wordpress.org/plugins/part-content-encryption/#description)
 * [Reviews](https://wordpress.org/plugins/part-content-encryption/#reviews)
 *  [Installation](https://wordpress.org/plugins/part-content-encryption/#installation)
 * [Development](https://wordpress.org/plugins/part-content-encryption/#developers)

 [Support](https://wordpress.org/support/plugin/part-content-encryption/)

## Description

大家都知道，其实wordpress自带就有文章和页面加密功能

但是，WordPress自带的文章或页面加密码，只能是整编文章或页面，此插件可以做到加密某
一段落的内容，这样可以有效，防止网络爬虫、采集、蜘蛛等。

或者由于现在网络净网行动不便于直接公布相关链接、视频、图片。需要“部分内容加密”来
隐藏

特点：
 – **短代码开箱即用**：`[pw key="..."]...[/pw]` – **微信二维码**：后台设置
公众号 _username_，前端自动生成二维码，也支持短代码临时覆盖 – **提示文案**：支持`{
red}…{/red}` 标红 – **多实例防串号**：同一页面多个 `[pw]` 互不影响 – **移动端友好**：
小屏自动换行，防止按钮/输入框溢出 – **更安全的输入处理**：转义/清理输入，常量时间
比较（`hash_equals`）

### 1.4.0

样式微调，自适应更多主题

### 1.3.7

回退为固定样式，修复移动端按钮溢出。

### 1.3.4

精简：仅保留 `{red}…{/red}` 写法；提示样式与正文一致

### 1.3.3

修复函数加载顺序导致的致命错误；新增对 `{red}…{/red}` 的支持

### 1.3.0

新增设置页：配置自定义提示词，也可短代码覆盖默认提示时，起到随时变换答案（配合公众
号自动回复）

### 1.2.0

新增设置页：配置微信公众号 `username`，可生成/覆盖二维码

### 1.1.1

修改样式版本号

### 1.1

修改样式，增加响应样式，修正兼容最新6.4以上版本

### 1.0.1

更正插件名，添加两个截图

### 1.0

这是初始版本

### 0.9

## Screenshots

 * [[
 * screenshot-1.png
 * [[
 * screenshot-2.png
 * [[
 * screenshot-3.png
 * [[
 * screenshot-4.png
 * [[
 * screenshot-5.png
 * [[
 * screenshot-6.png
 * [[
 * screenshot-7.png
 * [[
 * screenshot-8.png

## Installation

只需加短代码标签[pw key=”密码”]需要加密的内容[/pw]
 更多用法： – 自定义占位/按钮：`[
pw key="123" placeholder="请输入口令" button="提交"]...[/pw]` – 覆盖二维码：`wechat
="another_official"` 或 `qr="https://open.weixin.qq.com/qr/code?username=foo"` –
不显示二维码：`show_qr="0"` – 提示文案：`tip="请关注并回复：{red}访问密码{/red}"`

## FAQ

 1. 如何设置密码
     key的值，就是你要设置的密码
 2. 如何告知访客密码
     1，QQ群、TG群组 2，公众号“XX”回复，预设的自动回复答案 等等多种
    方式，主要是配合私域流量转换

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“部分内容加密” is open source software. The following people have contributed to
this plugin.

Contributors

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

[Translate “部分内容加密” into your language.](https://translate.wordpress.org/projects/wp-plugins/part-content-encryption)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/part-content-encryption/),
check out the [SVN repository](https://plugins.svn.wordpress.org/part-content-encryption/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/part-content-encryption/)
by [RSS](https://plugins.trac.wordpress.org/log/part-content-encryption/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **1.4.1**
 *  Last updated **8 months ago**
 *  Active installations **60+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.2.24 or higher **
 *  [Advanced View](https://wordpress.org/plugins/part-content-encryption/advanced/)

## Ratings

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/part-content-encryption/reviews/)

## Contributors

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

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/part-content-encryption/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://捐款链接地址)