Archived topic
GENERATE_HOOKS_DISALLOW_PHP
3 replies · Started by Daniel on March 15, 2017
Hello Tom,
thanks for the latest updates. Today I read about GENERATE_HOOKS_DISALLOW_PHP. At the moment I'm using the solution to hide the checkbox with css. How do I use this?
Best wishes
Daniel
Hi Daniel,
Simply add this into your wp-config.php file (or your functions.php file):
define( 'GENERATE_HOOKS_DISALLOW_PHP',true );
This will remove the checkbox, and will nullify any PHP you have inside your hooks.
Hi Tom,
yes that worked, added it to wp-config. This gives me a much better feeling in my multisite.
Thanks again.
Daniel
No problem! :)