Site logo

Archived topic

Disable PHP Execution in Hooks?

3 replies · Started by arthur on November 17, 2017

Viewing posts 1–4 of 4

That's correct - if executing PHP in hooks is disabled in your wp-config.php file, no PHP will be executed inside them (even if it's already set).

Okay. So as of now I don't need PHP in hooks - however, it seems like allowing PHP in hooks is not secure - so if I need to execute PHP at a hook point, what do I do? Write it into the functions.php file?

This archived topic is closed to new replies.