Home › Forums › Support › DISALLOW_FILE_EDIT is defined. This topic has 8 replies, 4 voices, and was last updated 4 years, 9 months ago by Toni. Viewing 9 posts - 1 through 9 (of 9 total) Author Posts June 23, 2017 at 4:53 am #337855 Grant DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. Learn how. I have all of a sudden started seeing this error. I would prefer to keep using GP Hooks. Is there a way of resolving this issue? June 23, 2017 at 8:54 am #337997 LeoStaff Customer Support This should help: https://docs.generatepress.com/article/disallow-php-execution/ February 13, 2018 at 8:54 am #495400 David García Alcaraz Hello, in my wordpress panel the following message appears: DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks. But I have not activated the PHP execution in GP Hooks. What should I do? Thank you very much February 13, 2018 at 10:56 am #495519 LeoStaff Customer Support It’s just a warning message, have you looked at the article above? https://docs.generatepress.com/article/disallow-php-execution/ February 14, 2018 at 5:52 am #496065 David García Alcaraz Yes Leo, but i don´t know where i must add the function add_action. Could you help me? February 14, 2018 at 6:31 am #496105 LeoStaff Customer Support One of these methods here: https://docs.generatepress.com/article/adding-php/ Code snippets is the way to go if you aren’t using a child theme. July 22, 2019 at 2:57 am #963930 Toni I have code snippets. Here is the code recommended in your “learn how”: define( ‘GENERATE_HOOKS_DISALLOW_PHP’, true ); Do I just snippets/add new – and then paste it into the box called Code? July 22, 2019 at 8:44 am #964262 LeoStaff Customer Support Yup that’s correct 🙂 Make sure to activate the snippet. July 22, 2019 at 9:12 am #964287 Toni Well, Leo, It didn’t get rid of the message. I ticked the “Run snippet everywhere” radial – should I run only in admin area? Also, why does this message only show up on the English version of the site? Author Posts Viewing 9 posts - 1 through 9 (of 9 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In