Title: Members Restricted Access
Author: Manny Costales
Published: <strong>2015 年 3 月 1 日</strong>
Last modified: 2016 年 3 月 3 日

---

搜索插件

![](https://ps.w.org/members-restricted-access/assets/banner-772x250.png?rev=1122296)

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

![](https://ps.w.org/members-restricted-access/assets/icon-256x256.png?rev=1122296)

# Members Restricted Access

 作者：[Manny Costales](https://profiles.wordpress.org/mcostales84/)

[下载](https://downloads.wordpress.org/plugin/members-restricted-access.3.0.zip)

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

 [支持](https://wordpress.org/support/plugin/members-restricted-access/)

## 描述

This plugin create shortcodes to restrict the access to Visitors, Members or specific
role. You can create sections in your page/post only visible to members (logged 
users), visitors or for an specific role.

To use you need to create the content and wrap it with these shortcodes: [visitor],[
member] or [showifrole].

 * You can use the parameters ‘is’ and ‘msg’. If you not specify them, the default
   value will be use instead.
 * The paramater ‘is’ is use it with the shortcode [showifrole] to check for that
   specific user. The default value is ‘administrator’.
 * And ‘msg’ is the message the system is going to show. You can use html code with
   single apostrophes (‘). The default value is null.

Examples:

‘[visitor]
 content only visible to visitors [/visitor]

[member msg=”You need to [Login](https://cn.wordpress.org/wp-login?output_format=md)
to see this content.”]
 content only visible to members [/member]

[showifrole is=administrator]
 content only visible for administrators [/showifrole]

[showifrole is=author msg=”You don’t have the required role.”]
 content only visible
for authors [showifrole]’

## 安装

To install this plugin just follow the standard procedure.

或者

 1. Upload `members-restricted-access.php` to the `/wp-content/plugins/` directory
 2. 通过WordPress的的“Plugins”菜单激活插件

## 常见问题

  Any question?

Send me an email at mcostales@jumptoweb.com and I will answer you as soon as I can.

## 评价

![](https://secure.gravatar.com/avatar/69c8f19e64b47dff948b77a7907c96b2ddbffe9a9f3b15f195faa7b3a218fe11?
s=60&d=retro&r=g)

### 󠀁[Works fine and is simple to use](https://wordpress.org/support/topic/works-fine-and-is-simple-to-use/)󠁿

 [wvdraay](https://profiles.wordpress.org/wvdraay/) 2018 年 3 月 5 日

This plugin does exactly what it says, in a simple and unobtrusive fashion. Despite
the fact that it has not been updated for two years, it works fine with the latest
and greatest version of Wordpress (4.9.4 at the time of this writing). A cosmetic
update to state that would be appreciated!

![](https://secure.gravatar.com/avatar/aa4e7ae66b93b5d7e6cf69dd3b2fa68b9f702855ca4522f1bb4f5d8c59c3ff59?
s=60&d=retro&r=g)

### 󠀁[Works well.](https://wordpress.org/support/topic/works-well-714/)󠁿

 [Jason R. Johnston](https://profiles.wordpress.org/evermail/) 2016 年 9 月 3 日

Ditto.

 [ 阅读所有4条评价 ](https://wordpress.org/support/plugin/members-restricted-access/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Manny Costales ](https://profiles.wordpress.org/mcostales84/)

[帮助将「Members Restricted Access」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/members-restricted-access)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0

 * Now you can use nested shortcodes, so you can use a any shortcode inside our 
   shortcode verification.

#### 2.1

 * Add the parameters for message in the members, visitors and showifrole shortcodes.
 * Add a default value for ‘is’ and ‘msg’.

#### 2.0

 * Added the shortcode to check by role.

#### 1.0

 * Just launch the plugin!

## 额外信息

 *  版本 **3.0**
 *  最后更新：**10 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/members-restricted-access/)
 * 标签
 * [members](https://cn.wordpress.org/plugins/tags/members/)[Restrict access](https://cn.wordpress.org/plugins/tags/restrict-access/)
   [visitor](https://cn.wordpress.org/plugins/tags/visitor/)
 *  [高级视图](https://cn.wordpress.org/plugins/members-restricted-access/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/members-restricted-access/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/members-restricted-access/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/members-restricted-access/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/members-restricted-access/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/members-restricted-access/reviews/?filter=1)

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

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

## 贡献者

 *   [ Manny Costales ](https://profiles.wordpress.org/mcostales84/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/members-restricted-access/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=VWWTUHZWRS4DG)