Title: Post Restrictor
Author: CygnusH33L
Published: <strong>2012 年 11 月 14 日</strong>
Last modified: 2013 年 1 月 31 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/post-restrictor.svg)

# Post Restrictor

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

[下载](https://downloads.wordpress.org/plugin/post-restrictor.zip)

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

 [支持](https://wordpress.org/support/plugin/post-restrictor/)

## 描述

Plugin for restricting posts from public view that are posted in a category called‘
private’, Does this by requiring the user to be logged in to view.

To use just create a category called ‘private’ then any posts posted into this category
will be hidden from public view (not logged in users).

## 安装

This section describes how to install the plugin and get it working.

 1. Upload `PostRestrictor.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Create a category called ‘private’
 4. post your “private” posts into the category ‘private’

## 常见问题

Q: Can I change what category is hidden?

A: Yes, however this can only be achieved by editing the plugins source code.

Q: Does this plugin hide posts from the category private on every page (e.g. front
page, single post view, category view etc)

A: Yes this plugin takes effect on every page.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

[帮助将「Post Restrictor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/post-restrictor)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

This is the first released version

#### 1.1

Added collision check – CygnusH33L
 Added comments – CygnusH33L

#### 1.2

Fixed major issue with hidding posts in widgets (sidebar), plugins and single page
view. – CygnusH33L

## 额外信息

 *  版本 **1.2**
 *  最后更新：**13 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.4.2. 或更高版本 **
 *  已测试的最高版本为 **3.5.1.**
 *  语言
 * [English (US)](https://wordpress.org/plugins/post-restrictor/)
 * 标签
 * [access](https://cn.wordpress.org/plugins/tags/access/)[admin](https://cn.wordpress.org/plugins/tags/admin/)
   [members](https://cn.wordpress.org/plugins/tags/members/)[pages](https://cn.wordpress.org/plugins/tags/pages/)
   [posts](https://cn.wordpress.org/plugins/tags/posts/)
 *  [高级视图](https://cn.wordpress.org/plugins/post-restrictor/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://Donate%20using%20Bitcoins,%20send%20to%20bitcoin%20address%201FwP7t5LrWLeoFxstDGT1zw1fiWBmuJgK9)