But there are some cases where you might require a reload of the page after consent, for instance, when using a plugin that handles consent on the server-side. Or, if you have an ‘incomplete’ integration that correctly blocks certain content, but does not properly re-initialize the content after obtaining consent.
In such cases, you can resort to the below MU Plugin to reload the page after obtaining consent.
- Copy and paste the below code in any text editor
- Save the file as a .php file
- Upload the .php file that you just created to the folder /wp-content/mu-plugins/ on your website.