Allow users to add custom functions to wordpress theme
My suggestion would be to use get_template_part. I think that is the closest you can get to what you want. You may be able to just drop get_template_part(‘userfuncts’); into your functions.php. That will load userfuncts.php from your theme’s main directory, if the file is present, or from a child theme’s directory if applicable. See the … Read more