Woocommerce Create custom product type with variations
Woocommerce Create custom product type with variations
Woocommerce Create custom product type with variations
Remove add to cart icon/view product button woocommerce
Shortcodes — Using add_action, add_filter in the shortcode
Set and access global variable
I think Shortcodes with Parameters is what you’re looking for. https://developer.wordpress.org/plugins/shortcodes/shortcodes-with-parameters/
Pass variable from one function to another
Is there a way to show Single Variation prices in the product loop when filters or attributes are active?
Result of API Request to global variable?
Changing static text in a theme into variable content that also respects language. Easiest way
As Ambitious Amoeba said, just do the check on each page load; it shouldn’t be that expensive. Otherwise, another possibility to store a single bit of information would be to use browser cookies.