Archived topic
GP Premium saving deleted Hooks?
4 replies · Started by Samuel on August 6, 2020
Some time ago I implemented a Cookie Banner via Hooks. But I can't find this code anywhere: https://www.screencast.com/t/rkZ3WgM2
So i get this error: https://www.screencast.com/t/AaO6xuyPTG83
And yes i deleted /js/cookieconsent.min.js
So I installed a test environment and deactivated GP Premium and lo and behold: the error does not appear in the console anymore. I have been looking for this error for 3 hours now. Is it possible that it is still cached somehow?
Ans the function.php is clean.
Is probably this the problem? https://www.screencast.com/t/EJYFAcA459
By the way, if I deactivate this in the test environment, it disappears completely. Isn't Elements = Hooks?
Hi there,
Hooks is now a deprecated module - it was replaced by Elements.
Since you have Elements activated as well, you'll want to go to "Appearance > Elements" and click the "Legacy Hooks" button at the top of the page. That's where you'll want to remove your old hook.
Alternatively, you can just deactivate the old Hooks module.
Ok works fine now. Thanks!
No problem!