For each clients site I work on, I find myself adding certain functions to the functions.php file – there’s around 12 different hacks that I add to all sites.
However if I need to change the code of one of these hacks, I then need to go & edit all functions.php files on each website individually.
What I’d like to do is on the clients sites, have just one function added which calls a php file on my own website. This file will contain all the hacks.
This way, when I need to update any of the hacks, I’ll only need to make the changes to the php file on my server.
Can anyone help me?
- The topic ‘Call an external functions file from functions.php’ is closed to new replies.