0

Parent theme required a foo.php file, and inside that file is a baz() function. I want to use that baz() function in functions.php of the child theme without recall foo.php file again. Are there any ways to do that?

2
  • Please explain the with code and what you have tried already.
    – Abhik
    Aug 23, 2015 at 5:13
  • @Abhik I edited my question. Hope you can understand!
    – Jane Brye
    Aug 23, 2015 at 5:26

1 Answer 1

1

If you can wait for the parent theme's functions.php to load you can hook to the after_setup_theme or init actions and do what you need there.

1
  • So i hooked it into after_setup_theme and it worked! Thanks you!
    – Jane Brye
    Aug 23, 2015 at 5:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.