Title: Restriction
Author: tooltipsorg
Published: <strong>2021 年 2 月 7 日</strong>
Last modified: 2024 年 2 月 18 日

---

搜索插件

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

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

# Restriction

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

[下载](https://downloads.wordpress.org/plugin/restriction.zip)

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

 [支持](https://wordpress.org/support/plugin/restriction/)

## 描述

Restriction is a wordpress restrict plugin to restric wordpress site, or wordpress
posts, or restricted content section in posts to non-member users.

When non-member users view your wordpress pages, they will be redirected to your
register page or landing page, you can set up the URL of register page or landing
page in “Restriction Global Setting” panel

In “Restriction Global Setting” panel, you can set up opened pages that will opened
for guest, guest can view these pages and will not be directed to landing page.

In “Restriction Global Setting” panel, you can enable “page lLevel protect” option,
if you enabled this option, in page / post editor, you will find “Members only for
this page?” meta box at the right top of the wordpress standard editor.
 If you 
checked “Allow everyone to access the page” checkbox in meta box, the post will 
be opened to all guest users By this way, you do not need enter page URLs to ppened
Pages panel always.

If you want to open your wordpress site to guest users, you can one click to open
your site via “Temporarily Turn Off All Featrures” option

If you just want to restrict a few private message, you can use shortcode [restriction]
hi, this is private content[/restriction]

Also you can restirct post private content based on users via restriction shortcode,
you can use it like this:
 [restriction roles=’editor,administrator’]hi, we are 
private content[/restriction] or [restriction roles=’editor’]hi, we are private 
content[/restriction]

And you can redirect users which have no permission to view the wordpress restricted
content to a customized URL with this way:
 [restriction roles=’editor,administrator,
admin’ link=’https://tooltips.org/shop/’]hi, we are private content[/restriction]

If you do not want to restrict post private content with user roles, just use restricted
shortcode like this:
 [restriction]hi, we are private content[/restriction]

### How To Use

Once installed the restriction plugin, please click restriction menu in back end,
we have detailed step by step notes for each option
 If you just want to restrict
a few private message, you can use shortcode [restriction]hi, this is private content[/
restriction]

### Download

https://www.wordpress.org/

## 安装

1:Upload the restriction plugin to your blog
 2:Activate it 3:Finish setup in restriction
menu

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.9

> [Support Custom Login Link Redirection for Restricted Content Access and enhanced code security](https://tooltips.org/support-customize-the-login-link-wordpress-restricted-content-plugin-by-wordpress-tooltips-1-0-9-released/)

#### 1.0.5

Now you can restirct post content based on users via restriction shortcode, you 
can use it like this:
 [restriction roles=’editor,administrator’]hi, we are private
content[/restriction] or [restriction roles=’editor’]hi, we are private content[/
restriction] If you do not want to restrict post content with user roles, just use
restricted shortcode like this: [restriction]hi, we are private content[/restriction]

#### 1.0.0

Initial release

## 额外信息

 *  版本 **1.0.9**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 5.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/restriction/)
 * 标签
 * [Restriction](https://cn.wordpress.org/plugins/tags/restriction/)
 *  [高级视图](https://cn.wordpress.org/plugins/restriction/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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