Title: Feature request: Trigger according to a global &#8220;variable&#8221;
Last modified: March 1, 2021

---

# Feature request: Trigger according to a global “variable”

 *  [lstep](https://wordpress.org/support/users/lstep/)
 * (@lstep)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/feature-request-trigger-according-to-a-global-variable/)
 * Hello,
 * A feature that would be nice, would be to have some kind of “global” variable(
   a boolean for example) that would be tested for value to activate or no a block.
   My use case is that I have a dozen of pages where I have a specific block element
   that I want to activate/deactivate all at the same time, but not according to
   a time parameter. If there was a variable that could be tested…

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * (@ndiego)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/feature-request-trigger-according-to-a-global-variable/#post-14119235)
 * Hi [@lstep](https://wordpress.org/support/users/lstep/), this is a very interesting
   feature request, one that I had not thought of. But I can definitely see how 
   this could be very useful. Almost like “global visibility conditions” that a 
   block could “subscribe to”. Basically you could tell a block to follow whatever
   condition is provided by the global setting. Then you can just toggle the global
   condition and all the blocks that are “subscribed” to that condition get updated.
   Interesting…
 * I have a bunch of other development for this plugin on my plate at the moment,
   but I am adding this to the list for exploration. Thanks for making a ticket 
   on GitHub.
 * Best,
    Nick

Viewing 1 replies (of 1 total)

The topic ‘Feature request: Trigger according to a global “variable”’ is closed 
to new replies.

 * ![](https://ps.w.org/block-visibility/assets/icon-256x256.png?rev=3122657)
 * [Block Visibility — Conditional Visibility Control for the Block Editor](https://wordpress.org/plugins/block-visibility/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/block-visibility/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/block-visibility/)
 * [Active Topics](https://wordpress.org/support/plugin/block-visibility/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/block-visibility/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/block-visibility/reviews/)

## Tags

 * [feature](https://wordpress.org/support/topic-tag/feature/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick Diego](https://wordpress.org/support/users/ndiego/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/feature-request-trigger-according-to-a-global-variable/#post-14119235)
 * Status: not a support question