One Child Functions.php for Multiple Child Themes

Well, I’d say that you need a custom plugin. All the rationale is in this Q&A:

Where to put my code: plugin or functions.php?

Also related:

And answering to the Question, create the following file /wp-content/themes/common-functions.php, and paste what you need in it. And inside the child theme functions.php use:

require_once ( TEMPLATEPATH . '/../common-functions.php' ); 

or

require_once ( WP_CONTENT_DIR . '/themes/common-functions.php' ); 

Leave a Comment