Block Logic – Full Gutenberg Block Display Control

Block Logic – Full Gutenberg Block Display Control Install Statistics

-12
0%
Today: 0 Yesterday: 12 All-time: 3,876 downloads
Block Logic – Full Gutenberg Block Display Control Icon

Try plugin: Block Logic – Full Gutenberg Block Display Control

We'll create fresh WordPress site with Block Logic – Full Gutenberg Block Display Control installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Block Logic – Full Gutenberg 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.

13


0


0


0


0

updated: 1 year ago
since: 4 years ago
author: Sascha Paukner

Description

Block Logic adds a “Block Logic” field to the “Advanced” section of the block editor (i.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

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.