Functions.php challenge – including external function library
-
Hey guys,
I’m struggling with this one. After running individual functions file for all of our sites at my company for several years, I want to streamline the way we work with functions. I intend to develop a function library that we implement on all of our sites and I want to store it in one place only.
I add an include/require statement in my functions.php file pointing to the external functions library on our company server. The library is read fine and basic echo statements outside of functions get interpreted. The functions themselves aren’t picked up however. I run function_exists and it fails on all the included functions.
(I run this test AFTER including the library)
I don’t understand why this wouldn’t work.
Can someone point me in the right direction, please? Thanks 🙂
Eivind
The topic ‘Functions.php challenge – including external function library’ is closed to new replies.