WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Super Simple Post / Page Restrictor

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

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

Super Simple Post / Page Restrictor

作者:arippberger
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

SSPPR provides a super simple way to restrict specific post/pages/custom post types. The plugin adds a checkbox to the post type you’d like restricted. If the checkbox is checked, POW, that post is restricted –accessible only to logged-in users.

Configuration

Page unavailable text

  • Here you can customize the text that will be displayed to users who do not have access to a post / page.
  • If left blank, this defaults to “This content is currently unavailable to you”.

Apply to which post types?

  • The post restriction metabox/checkbox will only appear on the backend of the post types selected here.
  • Additionally, if post types not selected here will not be restricted. If you’ve restricted certain pages and then deselect pages from this list, those pages will become accessible to all users (even though you previously restricted them).

Prevent restriction for which user types?

  • User roles selected here will never be able to view restricted content
  • User roles selected here will never be able to see restricted content, regardless of whether they are logged in.

Default restriction?

  • If this option is checked, posts / pages that are auto-generated should be restricted in most cases.
  • If this option is checked, newly created posts / pages should have their ‘restrict content’ checkboxes checked.

Future Development

I’d like to add the following features to the plugin. If you have suggestions for added features please email me at arippberger@gmail.com.

  • Add shortcode to restrict content – content placed between start/end shortcodes would be restricted
  • Resctrict content in RSS feeds

安装

Manual Installation

  • Download the plugin zip file and extract in your plugins directory
  • Configure the plugin setting found under Settings->Super Simple Post / Page Restrictor
  • Edit the post / page you’d like to restrict. There should be a checkbox labeled “Restrict Post?” – check this to restrict the current post / page.

Automated Installation

  • From the WordPress dashboard, click “Plugins->Add New”
  • Search for “Super Simple Post / Page Restrictor”
  • Click “Install Now” and then “Activate Plugin”
  • Configure the plugin setting found under Settings->Super Simple Post / Page Restrictor
  • Edit the post / page you’d like to restrict. There should be a checkbox labeled “Restrict Post?” – check this to restrict the current post / page.

常见问题

  • Q – How can I suggest features?

    • A – Email arippberger@gmail.com

    • Q – I just installed your password protection plug-in, but don’t see how to set the password.

    • A –
      All plugin plugin settings are located under Dashboard->Settings->Super Simple Post / Page Restrictor Settings. The plugin doesn’t add a global password to the site, it adds a checkbox to the backend of posts/pages. If that checkbox is checked a user can only view the page content if they are logged in (you can configure the options to prevent the content from EVER showing up for certain user types).

You could potentially use the plugin as a global lockout. To do so you’d want to 1) check the restrict content checkbox on the backend of the content you want to restrict 2) assign your user (someone who you want to grant access to the content) a username / password or direct them to create one for themselves 3) ensure the plugin settings allow the correct user type access. I’d imagine you’d want to restrict access to subscribers as WordPress usually allows these users to be created by anyone.

If that won’t work for you I’d try a plugin like https://wordpress.org/plugins/password-protected/

评价

One Of The Best

Mr Roger Hewison 2016 年 9 月 3 日
I am very Skeptical about using Plugins because this is a Business Website. Because this Plugin Works, and Works Very Well. There were No Installing issues, worked strait away. Simple Added Text for NON Registered users and selected which page i wished to block from Non Members. Congratulations on a Great Plugin…
阅读所有2条评价

贡献者及开发者

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

贡献者
  • arippberger

帮助将「Super Simple Post / Page Restrictor」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

  • 1.0 – Initial commit
    • 1.0.1 – Plugin cleanup and added translation support

额外信息

  • 版本 1.2.1
  • 最后更新:10 年前
  • 活跃安装数量 50+
  • WordPress 版本 3.0.1 或更高版本
  • 已测试的最高版本为 4.5.33
  • 语言
    English (US)
  • 标签
    loginrestrict contentuser login
  • 高级视图

评级

5 星(最高 5 星)。
  • 2 条 5 星评价 5 星 2
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • arippberger

支持

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

查看支持论坛

捐助

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

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗