Skip to content
WordPress.org
  • News
  • Showcase
  • Hosting
    • Themes
    • Plugins
    • Patterns
    • Blocks
    • Openverse ↗︎
    • Learn WordPress
    • Documentation
    • Forums
    • Developers
    • WordPress.tv ↗︎
    • Make WordPress
    • Education
    • Photo Directory
    • Five for the Future
    • Events
    • Job Board ↗︎
    • About WordPress
    • Enterprise
    • Gutenberg ↗︎
    • Swag Store ↗︎
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

CrispyCohd Gated Content Block (Lite)

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

CrispyCohd Gated Content Block (Lite)

By CrispyCohd
Download
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

CrispyCohd Gated Content Block (Lite) provides a simple, secure 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 loaded, this plugin applies true server-side content gating, ensuring restricted content is never rendered or exposed to the browser when access conditions are not met.

The gate block acts as a structural marker in your content flow:
– 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 secure, predictable, and fully compatible with caching and SEO.

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 control point rather than a rigid wrapper, you can combine familiar blocks such as Columns, Groups, Buttons, or even the WordPress Login block to build clear, styled calls-to-action for restricted content. This makes it easy to create polished, conversion-focused gated layouts — such as a custom login prompt — using the block editor alone, without shortcodes, custom templates, or additional plugins.

Upgrade to Pro

The Lite version is ideal for simple login-based 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

Existing Lite content remains fully compatible when upgrading.

Upgrade here:
https://crispycohd.com/products/crispycohd-gated-content-block

Build & Development

This plugin is built using the standard WordPress block development tooling.

All source files required to build the plugin are included in the plugin package.

Requirements

  • Node.js (LTS recommended)
  • npm (comes with Node.js)

Build Process

  1. Navigate to the plugin directory:
    wp-content/plugins/crispycohd-gated-content-block/

  2. Install dependencies:
    npm install

  3. Build the plugin assets:
    npm run build

This will compile the block editor JavaScript and CSS into the build/ directory.

Development Mode

For active development, you may run:
npm run start

This will watch source files and rebuild assets automatically on change.

Source Files

The editable source files are located in:
– blocks/gated-content/src/ (block editor JavaScript)
– assets/ (editor and front-end styles)
– includes/ (PHP logic and server-side rendering)

The compiled files in the build/ directory are generated from these sources and are included for distribution.

No external services, license checks, or remote build steps are required.

Screenshots

  • Gated Content block in the block inserter
  • Gate settings panel in the editor

Blocks

This plugin provides 1 block.

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

Installation

  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 (Lite)”.
  4. Place the gate block where you want content access to stop.

FAQ

Does this plugin hide content securely?

Yes. Restricted content is never rendered server-side if the access condition is not met.

Can I upgrade to the Pro version later?

Yes. The Pro version is fully backward compatible with content created using the Lite 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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“CrispyCohd Gated Content Block (Lite)” is open source software. The following people have contributed to this plugin.

Contributors
  • CrispyCohd

Translate “CrispyCohd Gated Content Block (Lite)” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.8

  • Improved compatibility with Pro version
  • Activation coexistence fixes
  • Stable server-side gate rendering

Meta

  • Version 1.0.8
  • Last updated 2 weeks ago
  • Active installations Fewer than 10
  • WordPress version 6.5 or higher
  • Tested up to 6.9
  • PHP version 7.4 or higher
  • Tags
    access-controlblock-editorcontent restrictiongated contentlogin required
  • Advanced View

Ratings

No reviews have been submitted yet.

Add my review

See all reviews

Contributors

  • CrispyCohd

Support

Got something to say? Need help?

View support forum

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Documentation
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org
  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
Code is Poetry