Hello,
I’m trying to figure out how to use the “check a query string value” condition, but I’m not finding that documentation (at https://wickedplugins.com/support/wicked-block-conditions/) or any examples, when I search. Would you please explain how to use that condition? Thanks!
-Jonroy
]]>I have some user defined functions. All works as expected. But I have to click and write a lot until a function is activated for a block. Is there a shorter way to do this?
]]>The block conditions panel isn’t showing in the block options sidebar after upgrading to WordPress 6.3.
]]>Please fix some Deprecated warnings in php 8.1.
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 33
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 40
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 54
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 47
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 68
PHP Deprecated: Return type of Wicked_Block_Conditions\Object_Collection::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/class-object-collection.php on line 61
PHP Deprecated: Return type of Wicked_Block_Conditions\Token\Token_Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/token/class-token-collection.php on line 94
PHP Deprecated: Return type of Wicked_Block_Conditions\Condition\Condition_Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/condition/class-condition-collection.php on line 74
PHP Deprecated: Return type of Wicked_Block_Conditions\Condition\Condition::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /wp-content/plugins/wicked-block-conditions/classes/condition/class-condition.php on line 144
Thank you very much.
]]>I did the test on a single wordpress and it worked, then I took it to my wordpress multisite and it didn’t work. Does it work for multisite?
]]>For some reason, they disappear after it’s saved.
]]>Is there a way to show/hide blocks on certain pages/posts?
]]>wp.compose.withState is deprecated since version 5.8. Please use wp.element.useState instead.
Can you update this bit of code? There is a warning in the Google Chrome console when I edit a page.
/wp-content/plugins/wicked-block-conditions/dist/index.js?ver=1.1.2
]]>Hello,
Although I already have translated the plugin into Spanish, it seems that you missed internationalizing the script files. Here are some useful links about this:
Hope it helps!
]]>When using “check a user-defined function,” I can place descriptive text in the “Label” field and my function in the “Function” field, then save, but the “Function” field clears when I go back to look at it. The “Label” field saves as expected. The function still works, but I can’t see what it is in case I want to make an update.
]]>Hi Team,
I was using this plugin on one of my sites and it was working fine everywhere but on Gravity Forms Block.
Block for the same was giving error and not getting displayed on the back-end. When I tried deactivating Wicked Block Conditions plugin, it started working again.
Screen shot of the error – https://www.awesomescreenshot.com/image/26928881?key=1b84073accb4ebef67a1accd3bac4728
Will you please check the issue.
Thanks
]]>Hi @menathor,
I sincerely apologize for never responding to your original support topic; I forgot to subscribe to notifications for this plugin and completely missed it. I’m starting a new thread since the last thread has been closed.
To answer your questions:
Great plugin. I’d like to see some settings to hide the “Display conditions” section in the editor by role as well. Would that be possible?
Good idea on only allowing certain roles to use the display conditions. We hadn’t thought of that but that is certainly something we can add. We’ll make a note to get that added in the next release.
Also, how developer friendly is this? Are there hooks in place to add our own conditions?
We’ve tried to make the plugin as developer-friendly as possible and you can definitely add your own conditions. You can use the wicked_block_conditions_register_conditions
action to register your own condition and the wickedBlockConditions.conditions
JavaScript filter to supply the React component for the condition’s UI.
Hi guys
Great plugin. I’d like to see some settings to hide the “Display conditions” section in the editor by role as well. Would that be possible?
Also, how developer friendly is this? Are there hooks in place to add our own conditions?
Thanks!
]]>