DISALLOW_FILE_EDIT

Once in a while, GeneratePress Hooks will throw this error when trying to execute PHP in an element:

Unable to execute PHP as DISALLOW_FILE_EDIT is defined.

This is usually caused by iThemes Security disallowing the file editor.

Disable the setting here:Security > Settings > WordPress Tweaks > File Editor