Archived topic
disallow PHP execution in GP Hooks
9 replies · Started by Ilse Turnbull on July 10, 2017
disallow PHP execution in GP Hooks -
I found and read the article but I have no idea what to do. What am I putting in, and where exactly am I putting it? I'm new to this stuff and haven't a clue where any of this stuff is.
While I'm here, since I deactivated my editor, (I can't find it so I must have shut it off) how do I put code into the site? I have an amazon "one link' code to put into the site - it says to put it at the end of the body tag? How would I do this??
Hi there,
You can add that using one of these methods: https://docs.generatepress.com/article/adding-php/
It's not necessary though. Another option would be to just remove the message:
https://docs.generatepress.com/article/disallow-php-execution/#removing-the-admin-message
Try adding that in wp_footer hook: https://docs.generatepress.com/article/hooks-overview/
Thank you! I think I got it now
I have tried https://docs.generatepress.com/article/disallow-php-execution/#removing-the-admin-message
and also tried adding to the wp_footer hook but I still receive the message DISALLOW_FILE_EDIT is defined.
Is there another way to disable this message?
Hi there,
Where did you add this code? https://docs.generatepress.com/article/disallow-php-execution/#removing-the-admin-message
Let me know :)
I tried adding it to my wp_config and also wp_footer hook
Try one of the methods here: https://docs.generatepress.com/article/adding-php/
Code Snippet is the easiest way.
Leo,
Thanks that worked perfect.
Danny
No problem!