• Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese
FREE ANALYSIS
  • Home
  • Services
    • Col 1
      • Tech & Analytics
      • Web Development
      • Technical Audit
      • Analytics & Tracking
    • Col 2
      • Growth Marketing
      • SEO Strategy
      • SEM & PPC
      • Social Growth
    • Col 3
      • AI & Strategy
      • Al Search (GEO)
      • SEO Content
      • Growth Consulting
    • Col 4
      • Operations & CRO
      • Conversion (CRO)
      • AI Automation
      • Full-stack Ops
  • Projects
    • Strategies
    • Plugins
    • Extensions
    • Creatives
  • Insights
  • About
  • Contact
  • English
    • Chinese

RenderWhen for Blocks

  • Home
  • Trends
  • RenderWhen for Blocks
RenderWhen for Blocks
  • 2026-05-17
  • by LethaldiranMX
  • Trends
  • 0 Comments
RenderWhen for Blocks
Developer Abhishek Kumar
Version v1.0.0
Active Installs 0 +
Requires / Tested 6.5 / 6.9.4
Last Updated 2026-05-17 9:08am GMT
Official Link View Details →
Show or hide any block when conditions match. Developer-first API and true server-side rendering — hidden blocks never reach the browser.

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. Out of scope in v1.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 RenderWhenConditionsInterface_Condition:

namespace My_PluginConditions;

use RenderWhenConditionsInterface_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. Issues, PRs, and architecture discussions welcome: https://github.com/abhishekfdd/renderwhen

  • block-editor,
  • blocks,
  • conditional,
  • gutenberg,
  • visibility,
  • wordpress plugin
Previous Post

VDL Competition Entries for WooCommerce

Next Post

Apqrinu Job Board

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Thoughts (1)
  • Trends (1,242)
  • Tutorials (1)

Recent Posts

2026-10-14
Agrunert E-Rechnung for ZUGFeRD
2026-10-13
Rotascore Live Scores Widget
2026-10-12
Ettrick Escape Room Booking
2026-10-11
Qrlastica – QR Code Generator with
2026-10-10
Anchormender – Internal Link Suggestions, Orphan

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • June 2026
  • May 2026
  • April 2026

Tags

accessibility admin AI analytics automation backup blocks booking calendar chat chatbot checkout contact form contact form 7 content customer support ecommerce elementor forms GDPR GEO gutenberg lead generation live chat llms.txt login openai optimization payment gateway performance popup privacy products rest-api Schema security SEO shipping shortcode support tracking whatsapp widget woocommerce wordpress plugin
  • shape1
  • shape2
  • shape3
  • shape4
  • shape5
  • shape6
  • shape7

Newsletter SignUp!

    About Us

    GROWTH,ARCHITECTED.
    Empowering global brands through data-driven SEO, high-performance web development, and AI-forward strategies.

    Information

    • Extensions
    • Strategies
    • Creatives
    • Plugins

    Services

    • AI & Strategy
    • Growth Marketing
    • Operations & CRO
    • Tech & Analytics

    Office Address

    • Nan'an District, Chongqing
    • +86-133-1028-2690
    • [email protected]
    • +86-133-1028-2690
    © Copyright AEOSUB 2026 | Digital Growth & Full-stack Operations
    • Home
    • About
    • Case Study
      • Case Study 1
      • Case Study 2
      • Case Study 3
      • Case Study 4
      • Case Study 5
    • Elements
      • Blog
        • Blog Post 1
        • Blog Post 2
        • Blog Post 3
        • Blog Post 4
        • Blog Post 5
        • Blog Post 6
      • Service
        • Service Gallery 1
        • Service Gallery 2
        • Service Gallery 3
        • Service Gallery
        • Service Gallery 5
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Testimonial
        • Testimonial – 1
        • Testimonial – 2
        • Testimonial – 3
      • Contact Info Box
        • Contact Info Box 1
        • Contact Info Box 2
      • Info Box
        • Info Box 1
        • Info Box 2
        • Info Box 3
      • Miscellaneous
        • Brand Showcase
        • Counter 1
        • Progress Bar
        • Progress Box Image
        • Radius Button
        • Section Title Subtitle
      • Pricing
        • Pricing Plan 1
        • Pricing Plan 2
        • Pricing Plan 3
        • Pricing Plan 4
        • Pricing Plan 5
    • Pages
      • Service
        • Service Archive
      • Case Study
        • Case Study Archive
        • Single Case Study 1
        • Single Case Study 2
        • Single Case Study 3
      • Team
        • Team Gallery 1
        • Team Gallery 2
        • Team Gallery 3
      • Typography
      • 404 Error
    • Blog
      • Blog 1
      • Blog 2
      • Blog 3
    • Contact
    Follow Us
    FREE ANALYSIS
    • Home
    • Services
      • Col 1
        • Tech & Analytics
        • Web Development
        • Technical Audit
        • Analytics & Tracking
      • Col 2
        • Growth Marketing
        • SEO Strategy
        • SEM & PPC
        • Social Growth
      • Col 3
        • AI & Strategy
        • Al Search (GEO)
        • SEO Content
        • Growth Consulting
      • Col 4
        • Operations & CRO
        • Conversion (CRO)
        • AI Automation
        • Full-stack Ops
    • Projects
      • Strategies
      • Plugins
      • Extensions
      • Creatives
    • Insights
    • About
    • Contact
    • English
      • Chinese
    Follow Us