Title: Wicked Block Conditions
Author: wickedplugins
Published: <strong>July 3, 2019</strong>
Last modified: May 12, 2025

---

Search plugins

![](https://ps.w.org/wicked-block-conditions/assets/icon-256x256.png?rev=2941036)

# Wicked Block Conditions

 By [wickedplugins](https://profiles.wordpress.org/wickedplugins/)

[Download](https://downloads.wordpress.org/plugin/wicked-block-conditions.1.2.5.zip)

 * [Details](https://wordpress.org/plugins/wicked-block-conditions/#description)
 * [Reviews](https://wordpress.org/plugins/wicked-block-conditions/#reviews)
 *  [Installation](https://wordpress.org/plugins/wicked-block-conditions/#installation)
 * [Development](https://wordpress.org/plugins/wicked-block-conditions/#developers)

 [Support](https://wordpress.org/support/plugin/wicked-block-conditions/)

## Description

Wicked Block Conditions is a powerful tool for creating conditional blocks. A conditional
block is a block that can be shown (or hidden) if the conditions you define are 
met. For example, you can create blocks that are only shown to logged-in users (
great for membership sites).

Define simple conditions or combine conditions into groups using and/or operators
for more complex scenarios.

#### Show or hide blocks based on:

 * User login status
 * User role
 * Date and time
 * Post categories or tags
 * Post status
 * The value of a query string parameter
 * The result of a custom PHP function

#### Features:

 * Show or hide any block using conditions
 * Specify an unlimited number of conditions
 * Combine conditions with “and” or “or” operators
 * Group conditions to create complex display rules
 * Works with any Gutenberg block including third-party blocks

#### Support

Please see the [FAQ section](https://wordpress.org/plugins/wicked-block-conditions/#faq)
below for common questions. [Visit the support forum](https://wordpress.org/support/plugin/wicked-block-conditions)
if you have a question or need help.

#### About Wicked Plugins

Wicked Plugins specializes in crafting high-quality, reliable plugins that extend
WordPress in powerful ways while being simple and intuitive to use. We’re full-time
developers who know WordPress inside and out and our customer happiness engineers
offer friendly support for all our products. [Visit our website](https://wickedplugins.com/?utm_source=readme&utm_campaign=wicked_block_conditions&utm_content=about_link)
to learn more about us.

## Screenshots

 * [[
 * The block with the dark background will only be displayed if the user is logged
   in
 * [[
 * Use and/or operators and group conditions for more complex conditional blocks
 * [[
 * Various conditions can be used to show or hide blocks
 * [[
 * Every condition can be assigned a custom label. You can also negate conditions.
   Each condition has its own configuration settings.

## Installation

 1. Upload ‘wicked-block-conditions’ to the `/wp-content/plugins/` directory, or install
    the plugin through the WordPress plugins screen by searching for ‘Wicked Block 
    Conditions’.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Edit a post or page using the block editor and select a block. You should see a‘
    Display Conditions’ panel.

## FAQ

### I installed the plugin, now what?

Edit a post or page and select the block that you’d like to show or hide based on
conditions. In the right sidebar of the editor, you should see a panel labeled ‘
Display Conditions’. Click the panel to expand it and click the “Add Condition” 
link to add your first condition.

### How do I edit a condition?

Click the cog icon to the right of the condition’s label.

### How do I delete a condition?

Click the cog icon to the right of the condition’s label to edit the condition and
then click the ‘Delete’ button.

### How do I show a block when the current date is between two dates?

This can be accomplished by using two ‘Check The Date’ conditions. Click ‘Add Condition’
and choose the ‘Check The Date’ condition. Choose the ‘After’ option and select 
the date that you’d like to start showing the block (i.e. the start date). Save 
the condition and add another ‘Check The Date’ condition but this time choose the‘
Before’ option and select the date that you’d like to stop showing the block (i.
e. the end date).

### I set up a block to display after a certain date but it’s not working. What’s wrong?

Be sure that the correct timezone is selected on the Settings > General page in 
WordPress and that the date and time you specified for your condition is for that
timezone.

### What does the ‘Negate condition’ option do?

Every condition returns true or false based on whether or not the condition was 
met. Negating a condition reverses the outcome so that a condition that would normally
return true will return false and, a condition that would normally return false 
returns true instead.

### Will my block conditions get deleted if I deactivate or uninstall the plugin?

Yes and no. The conditions are not deleted and will still be there if you re-activate
the plugin later; however, if you edit a page with conditional blocks while the 
plugin is deactivated, any conditions that were previously assigned to blocks will
be erased.

## Reviews

![](https://secure.gravatar.com/avatar/0f41a7687d38c966aca97e2f6cf3611b526dfea1dca116072241922476e52518?
s=60&d=retro&r=g)

### 󠀁[Does exactly what it says on the tin!](https://wordpress.org/support/topic/does-exactly-what-it-says-on-the-tin-127/)󠁿

 [Ross Mulcahy](https://profiles.wordpress.org/romulcah/) August 22, 2023 1 reply

I’ve found this plugin to be really easy to use and works really well. It does exactly
what you expect and the interface is simple. The developer is really responsive 
and provides great support.

![](https://secure.gravatar.com/avatar/8ee040a66538c16912e3ef665e7f9301279ab575f197300df3b888ddc84ec022?
s=60&d=retro&r=g)

### 󠀁[Has a future](https://wordpress.org/support/topic/simple-and-powerful-192/)󠁿

 [Lenin Zapata](https://profiles.wordpress.org/leninzapata/) March 24, 2023 1 reply

I had a problem, the support was fast and effective, with a demo site I was able
to quickly locate my problem without having to test from my website and deactivate
all my plugins to see the problem. I hope the author can add the validation functionality
by means of GEO, Referer, UserAgent, Devices, etc…

![](https://secure.gravatar.com/avatar/f2949e1420c186ba7fe9eafb8f5c406b6b29ddebb639e7c7da6f93d39b784643?
s=60&d=retro&r=g)

### 󠀁[Flexible & elegant](https://wordpress.org/support/topic/flexible-elegant/)󠁿

 [Martin Sauter](https://profiles.wordpress.org/martinsauter/) September 21, 2022
1 reply

Compared to other plugins which allow you to control block visibility, Wicked Block
Conditions is more powerful and allows you to create quite complex conditions. Nevertheless,
the UI is simple and compact. If you are looking for a plugin in this category, 
give this one a try (although it does not have too many active installs currently).

![](https://secure.gravatar.com/avatar/8a646ec4cc23b15fd8c313644fc305f84a2fa68b215e1308380cc8d9d25abfef?
s=60&d=retro&r=g)

### 󠀁[Simple and flexible](https://wordpress.org/support/topic/simple-and-flexible-37/)󠁿

 [Tim in Seattle](https://profiles.wordpress.org/theframeguy/) May 18, 2022

Conditional block visibility seems like something that should be built into WordPress,
but it’s not. This plugin solves that missing feature in a simple to use and flexible
way.

![](https://secure.gravatar.com/avatar/74e85be55810485997f7b2fda741d66ff6048b69eec5d70ba762535df607c2ac?
s=60&d=retro&r=g)

### 󠀁[Simple and powerful](https://wordpress.org/support/topic/simple-and-powerful-149/)󠁿

 [menathor](https://profiles.wordpress.org/menathor/) May 15, 2020

Very nice plugin! Lightweight but powerful.

 [ Read all 5 reviews ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/)

## Contributors & Developers

“Wicked Block Conditions” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ wickedplugins ](https://profiles.wordpress.org/wickedplugins/)

“Wicked Block Conditions” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wicked-block-conditions/contributors)
for their contributions.

[Translate “Wicked Block Conditions” into your language.](https://translate.wordpress.org/projects/wp-plugins/wicked-block-conditions)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wicked-block-conditions/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wicked-block-conditions/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wicked-block-conditions/)
by [RSS](https://plugins.trac.wordpress.org/log/wicked-block-conditions/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

= 1.2.5 (May 12, 2025)
 * Fix: ‘store “core/interface” is already registered’ error*
Fix: wp_enqueue_script doing-it-wrong warning message when debugging is enabled

#### 1.2.4 (November 20, 2024)

 * Tweak: clean up plugin to exclude configuration and source files
 * Tweak: increase PHP required version to 7.4

#### 1.2.3 (November 20, 2024)

 * Fix: PHP warning caused by missing function return type
 * Tweak: update tested-up-to flag to 6.7

#### 1.2.2 (August 22, 2023)

 * Fix: missing lodash dependency preventing conditions panel from appearing when
   using Gutenberg plugin

#### 1.2.1 (July 20, 2023)

 * Fix: missing return types in PHP classes causing deprecation warnings in PHP 
   8

#### 1.2.0 (February 6, 2023)

 * New: check post ID condition
 * New: check post slug condition

#### 1.1.3 (December 21, 2022)

 * Remove references to deprecated WordPres JavaScript functions
 * Add plugin text domain to translation functions in JavaScript
 * Update tested-up-to version

#### 1.1.2 (May 16, 2022)

 * Fix user-defined function name disappearing
 * Fix server-side rendered blocks not working
 * Fix server-side rendered blocks not previewing in editor when display conditions
   aren’t met
 * Test with WordPress 6.0 and update tested-up-to version

#### 1.1.1 (May 17, 2021)

 * Fix conditions not applying to inner blocks
 * Fix first condition being added to all blocks of same type

#### 1.1.0

 * Add support for query string parameters
 * Fix operator dropdowns overlapping condition labels

#### 1.0.2

 * Update ‘Tested up to’ flag to 5.4

#### 1.0.1

 * Fix text domain
 * Fix plugin name in readme

#### 1.0.0

 * Initial release

## Meta

 *  Version **1.2.5**
 *  Last updated **1 year ago**
 *  Active installations **600+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/wicked-block-conditions/) and [Spanish (Venezuela)](https://ve.wordpress.org/plugins/wicked-block-conditions/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wicked-block-conditions)
 * Tags
 * [block visibility](https://wordpress.org/plugins/tags/block-visibility/)[blocks](https://wordpress.org/plugins/tags/blocks/)
   [conditional blocks](https://wordpress.org/plugins/tags/conditional-blocks/)[conditions](https://wordpress.org/plugins/tags/conditions/)
 *  [Advanced View](https://wordpress.org/plugins/wicked-block-conditions/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wicked-block-conditions/reviews/)

## Contributors

 *   [ wickedplugins ](https://profiles.wordpress.org/wickedplugins/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wicked-block-conditions/)