Site logo

Archived topic

DISALLOW_FILE_EDIT is defined.

8 replies · Started by Grant on June 23, 2017

Viewing posts 1–9 of 9

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?

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

Yes Leo, but i don´t know where i must add the function add_action. Could you help me?

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?

Yup that's correct :)

Make sure to activate the snippet.

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?

This archived topic is closed to new replies.