In most Genesis child themes, the following line of code exists:
// Starts the engine.
require_once get_template_directory() . '/lib/init.php';
I understand that this includes the init.php file from the lib directory within the Genesis parent theme folder.
My question is simply - why does get_template_directory()
return the Genesis parent folder, as opposed to the child theme folder? And how does it identify it if there are multiple parent themes possible?