This is a PHP question rather than WP or GF...
Does anyone know how to put custom action/filter hooks in a different file other than functions.php?
I tried to put a hook function in different file (my_hooks.php), then simply include that file in functions.php, but I'm getting an undefined function error. My whole purpose in doing this is to reduce the amount of custom code I put in functions.php.
Ideally, I would like to only register the hooks in functions.php, but all the useful code live elsewhere.