diff --git a/CustomThemeTree.php b/CustomThemeTree.php index 72204eb..cb6e03d 100644 --- a/CustomThemeTree.php +++ b/CustomThemeTree.php @@ -5,6 +5,10 @@ namespace Skycel\CustomTree; use WP_Theme; use Error; + +// Load Template Loader first +require_once __DIR__ . '/TemplateLoader.php'; + /** * Class for managing custom theme directory structures and settings. * Provides functionality for initializing themes, creating custom directories, diff --git a/includes/functions.inc.php b/includes/functions.inc.php index 0cd943d..c6809bc 100644 --- a/includes/functions.inc.php +++ b/includes/functions.inc.php @@ -1,6 +1,5 @@