I would like to override a require_once
present at the beginning of the functions.php of my main theme through my child theme.
specifically I have:
require_once get_template_directory().'/libs/some-function.php
I know that replacing get_template_directory()
with get_stylesheet_directory()
I can load a modified copy of the some-function.php file into my child theme. but I wouldn't change the parent theme, I would make the change only in the child theme.
I add that the require_once
is not hooked
Suggestions?
Thanks