Force Reload & Shortcodes
-
Hi, I hope that you can help me.
You see, on my website I use shortcodes to show AdSense or something else, according to cookies. I’m using the gdpr_cookie_is_accepted (‘advanced’) function for that.
While it’s not accepted, something else. When accepted, AdSense.
The problem is that when it’s accepted, after recharging (I added add_action( ‘gdpr_force_reload’, ‘__return_true’); ), the shortcodes continue to show something else. They only change when going to another page.
How can I do so that the code of the shortcodes is also collected the same as the rest of the page?
I thought it was a cache problem and tried to add the gdpr_force_reload hook to the list of hooks that trigger a purge, but it didn’t work either. Maybe it is necessary to add someone else?
I hope you can give me some idea. Thanks in advance
The page I need help with: [log in to see the link]
- The topic ‘Force Reload & Shortcodes’ is closed to new replies.