Is there a way to use WordPress conditional tags to make a particular widget only load if the visitor has stored a particular cookie? (I have Widget Logic, but this really concerns the proper choice/syntax of conditional tags rather than the plugin itself, which just provides a convenient way to insert them.)
I have a PayPal button in a widget, and I would like to set that widget so that it only loads if the visitor has previously “I accept” on the privacy bar, which sets a cookie “gdpr%5Bprivacy_bar%5D” with content 1.
Does anyone have any suggestions of how I could set a conditional tag that looks for the presence of this cookie/value, so I can place that with Widget Logic?
(I understand the principle of conditional tags, but the syntax of them is pretty opaque — this is not my field!)
The page I need help with: [log in to see the link]