Archived topic
No PHP Execution checkbox in hooks
7 replies · Started by Cindy on February 18, 2018
I'm not sure whether this has something to do with Wordfence, or if something happened when I moved my site, but in the Hooks module in GP Premium I no longer have an 'Execute PHP' checkbox, only a 'Disable Hook' checkbox. I tried disabling Wordfence and reinstalling GP Premium but no change.
Can you check to make sure that it's working on your end? I don't know of a case where I wouldn't use PHP there, so it seems like it should be automatic.
Thanks!
Hi there,
Yup the checkbox should still be there.
Did you add the function to disable PHP execution in hooks? https://docs.generatepress.com/article/disallow-php-execution/
Yep that's exactly what it was, I'm thinking it might have been added by the security plugin I was using before. :) Thanks very much!
No problem :)
Hi!
If it is possible, I have another question.
Does this function (https://docs.generatepress.com/article/disallow-php-execution/) only disable the warning? Does not it reduce the security of the site?
Thanks.
Which function are you talking about in there?
This one only disable the message and the checkbox is still there: https://docs.generatepress.com/article/disallow-php-execution/#removing-the-admin-message
I see. Thanks
No problem!