Archived topic
Issues with Hooks in Elements after installing security plugin
3 replies · Started by Fredrik on November 26, 2022
Having issues with different Hooks in Elements, secondary menus, product categories, product image galleries not showing or the code text shows instead, on a couple of websites after installing a security plugin. Seeing this: Unable to execute PHP as DISALLOW_FILE_EDIT is defined. How do I fix?
Hi there,
if you want to enable PHP execution in Hooks then see this doc, it provides the PHP Snippet that will allow you to do that:
https://docs.generatepress.com/article/generate_hooks_execute_php/
Thanks!
You're welcome