I don’t like version from Breakdance because it can be not secure. But we added extra filters so now it’s possible to do this. Example was added
It is not clear to me how to show the content of the block if the condition is true?
if condition is true, you don’t need to add anything, it will return block as is, without modification, you must add opposite, when condition is not true – it must show nothing
Thanks, now it’s clear!
I’m very happy that this is now possible, but I have a suggestion that I think would be much, much better from a UX point of view: couldn’t a free text box with a condition be displayed in the visibility block like any other pre-definied condition? So if the condition entered there is true/false, the block would be displayed/hided. I think it would be much more transparent and manageable if you didn’t have to do it from functions.php or a separate plugin or whatever… With many visibility blocks with unique conditions, it’s quite difficult to keep track of them!
do you mean php code area? I think we can’t add it because it will be very high security risk
Yes, I mean a php code area. Why is this a security risk? A lot of plugins have solved this (including your Smarcode plugin… 🙂
Leave a Reply