Title: Simple PageAccess
Author: Guru Plugins
Published: <strong>2025 年 8 月 19 日</strong>
Last modified: 2025 年 8 月 20 日

---

搜索插件

![](https://ps.w.org/simple-pageaccess/assets/banner-772x250.png?rev=3347250)

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

![](https://ps.w.org/simple-pageaccess/assets/icon-256x256.png?rev=3347250)

# Simple PageAccess

 作者：[Guru Plugins](https://profiles.wordpress.org/guruplugins/)

[下载](https://downloads.wordpress.org/plugin/simple-pageaccess.1.0.zip)

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

 [支持](https://wordpress.org/support/plugin/simple-pageaccess/)

## 描述

**Simple PageAccess** is probably the smallest, most powerful access control plugin
you’ll ever install.

In under **100 lines of code**, it gives you role-based control over who can view
each page — without cluttering your dashboard or slowing down your site.

 * Adds a “Only Allow Logged In Users” checkbox to each page
 * Dynamically show checkboxes for each user role via clean in-editor UI
 * Restrict access with **zero configuration**, straight from the page editor
 * Display a centered heading message: _“You are not allowed to view this page!”_
   for unauthorized users
 * No separate settings page, no database bloat — just smart, surgical code

Perfect for membership sites, private client pages, internal portals, or any time
you want fast, targeted access control.

### Credits

Built by Christopher Harden — plugins.guru-is.com

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/simple-pageaccess` directory,
    or install via the WordPress Plugin Directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Edit any page. In the right-hand settings panel, check “Only Allow Logged In Users”
    to enable restrictions.
 4. Choose the user roles that should be allowed to view the page.

## 常见问题

### Can I restrict posts or custom post types?

Not yet — this version only supports pages. Post type support may come in a future
release.

### What happens if a user isn’t allowed?

They’ll see a clean, centered message that says: _“You are not allowed to view this
page!”_

### Can I change the message or redirect users?

Not yet, but custom behavior can be added with a few lines of code.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ Guru Plugins ](https://profiles.wordpress.org/guruplugins/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Initial release — small code, big control.

## 额外信息

 *  版本 **1.0**
 *  最后更新：**9 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.7.5**
 *  PHP 版本 ** 7.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-pageaccess/)
 * 标签
 * [page access](https://cn.wordpress.org/plugins/tags/page-access/)[private pages](https://cn.wordpress.org/plugins/tags/private-pages/)
   [restrict pages](https://cn.wordpress.org/plugins/tags/restrict-pages/)[role-based access](https://cn.wordpress.org/plugins/tags/role-based-access/)
   [user roles](https://cn.wordpress.org/plugins/tags/user-roles/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-pageaccess/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ Guru Plugins ](https://profiles.wordpress.org/guruplugins/)

## 支持

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

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