Title: PHP code showing on user side &#8211; hooks broken
Last modified: September 29, 2024

---

# PHP code showing on user side – hooks broken

 *  [helpwp1](https://wordpress.org/support/users/helpwp1/)
 * (@helpwp1)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/php-code-showing-on-user-side-hooks-broken/)
 * Just wanted to share in case it helps anyone. I was having a problem where some
   php code fragments were displaying in place of the post header and related posts
   sections, on the front end (user side) of every post on my site. Finally figured
   out it was due to a setting in the plugin Real Simple Security- I had activated
   the “Disable the built-in file editors” feature under_ Settings > Hardening_.
   Apparently that sets DISALLOW_FILE_EDIT to true, causing the problem. As soon
   as I deactivated that setting, everything went back to normal.

The topic ‘PHP code showing on user side – hooks broken’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [helpwp1](https://wordpress.org/support/users/helpwp1/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/php-code-showing-on-user-side-hooks-broken/)
 * Status: not resolved