WordPress plugin intelligence profile

RenderWhen for Blocks

Show or hide any block when conditions match. Developer-first API and true server-side rendering — hidden blocks never reach the browser.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version1.0.0
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.5 · PHP 7.4
Directory statusactive
Last directory update2 Aug 20263mo ago
Active installationsNewAdoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records RenderWhen for Blocks version 1.0.0 as active, updated 3mo ago and tested up to WordPress 7.0.

Overview

About this plugin

RenderWhen for Blocks adds conditional visibility to every block in the WordPress block editor. Decide who sees what, and when, with a panel that reads exactly how you’d say it out loud:

>

Show this block when the user is logged in.

Show this block when the date is between March 1 and March 31.

Show this block when the device is mobile.

RenderWhen is built around two ideas that set it apart from other visibility plugins:

  • Server-side rendering only. When a block is hidden by a condition, it is not rendered into the page output at all. No CSS display: none, no DOM bloat, no leaked content in view-source. Search engines, screen readers, and your page weight all benefit.
  • Public Conditions API. The three built-in conditions are registered through the same public API your plugin or theme can use to add your own. No hacks, no internal-only code paths.

In the editor, a subtle dashed border marks every block that carries a visibility rule, so a rule-bearing block never disappears from the published page as a surprise. A “Preview as audience” sidebar lets you simulate a logged-out visitor, a specific role, or a different device class right in the editor — blocks whose rule would hide them fade out with a clear badge, no save-and-reload cycle required.

Built-in conditions (v1.0)

  • User state — show to logged-in users, logged-out users, or specific roles
  • Date range — show between two datetimes, timezone-aware
  • Device type — show on desktop, tablet, or mobile

Designed for

  • Agencies and freelancers building client sites who want a clean, predictable visibility tool
  • Developers who need an extension point, not another walled garden
  • Anyone who cares about page weight and SEO hygiene

What this plugin deliberately does NOT do

It does one thing well rather than ten things adequately. 0:

  • Multi-condition AND/OR groups (planned for v1.1)
  • URL / cookie / referrer / geolocation conditions
  • WooCommerce, ACF, or membership integrations
  • A settings dashboard

If you need those today, Conditional Blocks and Block Visibility are excellent and well-established choices.

For developers

Register a custom condition in three steps. Implement the interface, add it to the registry, ship.

add_action( 'renderwhen_register_conditions', function ( $registry ) { $registry->register( new My_Plugin\\Conditions\\Country_Condition() ); } );

Your condition class implements RenderWhen\Conditions\Interface_Condition:

namespace My_Plugin\Conditions;

use RenderWhen\Conditions\Interface_Condition;

class Country_Condition implements Interface_Condition { public function get_id(): string { return 'country'; }

public function get_label(): string { return __( 'Visitor country', 'my-plugin' ); }

public function get_schema(): array { return array( 'type' => 'object', 'properties' => array( 'countries' => array( 'type' => 'array', 'items' => array( 'type' => 'string' ), ), ), ); }

public function evaluate( array $settings, array $context ): bool { $current = my_plugin_detect_country(); return in_array( $current, $settings['countries']?? array(), true ); } }

The full set of public filters:

  • renderwhen_register_conditions — register your conditions here
  • renderwhen_evaluate_{condition_id} — last-mile override of any condition’s result
  • renderwhen_render_block_hidden — fires when a block is hidden, useful for cache busters and SEO tools
  • renderwhen_device_type — swap in your own device detection

The plugin is developed openly on GitHub. com/abhishekfdd/renderwhen

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • block editor
  • blocks
  • conditional
  • gutenberg
  • visibility
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 7.0

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 7.0.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.0
Minimum requirementsWordPress 6.5 · PHP 7.4
Update activity2 Aug 20263mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.