跳至内容
WordPress.org

China 简体中文

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

Plugin Directory

CrispyCohd Gated Content Block

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

CrispyCohd Gated Content Block

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

描述

CrispyCohd Gated Content Block provides a secure, block-native way to restrict access to content in the WordPress block editor based on whether a visitor is logged in or logged out.

Unlike plugins that rely on JavaScript or CSS to hide content after it has already loaded, this plugin applies true server-side content gating, ensuring restricted content is not rendered into the front-end HTML output unless access conditions are met.

The gate block acts as a structural control point within your content:
– If the visitor meets the access condition, the gate is hidden and content continues rendering normally.
– If the visitor does not meet the condition, the gate message is displayed and all content after it is hidden.

This approach is predictable, secure, and fully compatible with caching, SEO, and modern WordPress themes.

Flexible, Block-Based Gated Layouts

CrispyCohd Gated Content Block works seamlessly with any core or custom WordPress block, giving you full freedom to design gated sections that suit your content and audience. Because the gate acts as a structural marker rather than a rigid wrapper, you can combine familiar blocks such as Columns, Groups, Buttons, or even the WordPress Login block to create clear, styled calls-to-action for restricted content. This makes it easy to build polished, conversion-focused gated layouts using the block editor alone, without shortcodes, custom templates, or additional plugins.

Upgrade to Pro

The free version is ideal for simple login-based content restrictions.

The Pro version adds advanced gating options, including:
– User roles (including custom roles)
– WooCommerce product ownership
– WooCommerce subscriptions
– User meta conditions
– Advanced visual controls and fade effects
– Full REST API gating for complete lock-down of content

Existing content created with the free version remains fully compatible when upgrading.

Learn more:
https://crispycohd.com/products/crispycohd-gated-content-block

屏幕截图

Gated Content block in the block editor, showing login-based access control.
Gated Content block in the block editor, showing login-based access control.

区块

该插件提供了 1 个区块.

  • CrispyCohd Gated Content Block (Lite) Gate the remainder of the post based on login state.

安装

  1. Upload the plugin to the /wp-content/plugins/crispycohd-gated-content-block/ directory, or install it via the Plugins screen in WordPress.
  2. Activate the plugin through the Plugins screen.
  3. Open the block editor and search for “Gated Content”.
  4. Place the gate block where you want content access to stop.

常见问题

Does this plugin hide content securely?

Yes. Restricted content is not rendered into the front-end HTML output unless access conditions are met. If REST API gating is also required you will need to upgrade to the Pro plugin.

Can I upgrade to the Pro version later?

Yes. The Pro version is fully backward compatible with content created using the free version.

Does this work with caching plugins?

Yes. Because gating happens on the server, it works correctly with page caching and CDNs.

Can I design my own gated layouts?

Yes. You can use any core or custom block inside the gated section to design your own layouts and calls-to-action.

Where can I find the source code for the block assets?

This plugin includes all human-readable source files used to generate the bundled JavaScript and CSS assets. Build tooling and instructions are included for transparency and compliance with WordPress.org guidelines. Most users do not need to rebuild the plugin to use it.

评价

此插件暂无评价。

贡献者及开发者

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

贡献者
  • CrispyCohd

帮助将「CrispyCohd Gated Content Block」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.0.13

  • Addition of a ‘Preview’ feature for Admins & editors
  • Improved compatibility with Pro version
  • Updates to readable content & readme
  • Minor compatibility adjustments

额外信息

  • 版本 1.0.13
  • 最后更新:4 周前
  • 活跃安装数量 不到10
  • WordPress 版本 6.5 或更高版本
  • 已测试的最高版本为 6.9.4
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    block-editorcontent restrictioncontent-gatinglogin required
  • 高级视图

评级

尚未提交反馈。

Your review

查看全部评论

贡献者

  • CrispyCohd

支持

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

查看支持论坛

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

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.