Site logo

Archived topic

Disallow PHP Editing

1 reply · Started by Janine on September 9, 2020

Viewing posts 1–2 of 2

Hiya!

In my WP Dashboard, I am getting this message:

DISALLOW_FILE_EDIT is defined. You should also disallow PHP execution in GP Hooks.

And the GP documentation instructs me to do this...

To add this to my wp-config.php:

define( 'GENERATE_HOOKS_DISALLOW_PHP', true );

Here...

This constant should be added into your wp-config.php file, below the DISALLOW_FILE_EDIT constant.

When I download a copy of my wp-config.php for that database, the constant is in my
security plugin block.

Should I go ahead and enter it within that block?

NOTE: Site currently offline as I am moving to a new host.

Thank you!

Hi there,

I'm not 100% sure how the security plugin handles this but worth a shot to see if that works.

This archived topic is closed to new replies.