WordPress plugin intelligence profile

Block Logic – Full Block Display Control

Block Logic adds a "Block Logic" field to the block editor, that lets you show or hide any block based on conditions.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.0
Current version2.1.6
WordPress coverageTested up to WordPress 7.0
Minimum stackWP 6.5 · PHP 8.0
Directory statusactive
Last directory update30 May 20265mo ago
Active installations300Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 13 ratings
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 Block Logic – Full Block Display Control version 2.1.6 as active, updated 5mo ago and tested up to WordPress 7.0.

Overview

About this plugin

e Gutenberg), that lets you show or hide any block based on conditions. You can use WordPress’ Conditional Tags or any general PHP code.

Show or hide blocks based on

  • User role
  • User login status
  • Post status
  • Date and time
  • The result of a custom PHP function

Features

  • Show or hide any block using conditions
  • Combine conditions with “and” or “or” operators. See FAQ Writing Logic Code
  • Full flexibility: use any condition you want (you can extend base functionality with filters)

Limitations

Does not work with the Classic Block, Widget Block or Widget Area Block [‘core/freeform’, ‘core/legacy-widget’, ‘core/widget-area’], as the those blocks do not support block attributes. Does also not work with the HTML Block [‘core/html’] inside the Widget Screen, as this one also does not support block attributes there.

Configuration

Just activate the plugin. The “Block Logic” textbox will then appear in the “Advanced” section of the Gutenberg editor.

Breaking changes since 2.0.0

0 the code does not get eval’d directly, but there is a whitelist of allowed functions that can be extended via a filter.

Upgrade Notice

x you will need to update your logic. No return is allowed anymore and no semicolons in code as only expressions are evaluated. See FAQ Section Writing Logic Code.

WordPress.org metadata

Plugin tags

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

  • block
  • conditional
  • conditions
  • logic
  • 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 8.0
Update activity30 May 20265mo 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.