🎨 - Réorganisation et amélioration de la structure CustomThemeTree

This commit is contained in:
2025-02-05 01:10:06 +01:00
parent 4256b12555
commit 7a7881fae0
2 changed files with 28 additions and 8 deletions

View File

@@ -11,6 +11,8 @@ use Skycel\CustomTree\CustomThemeTree;
require_once __DIR__ . "/custom-template.php";
require_once __DIR__ . "/functions.php";
require_once __DIR__ . "/includes/custom-template.inc.php";
require_once __DIR__ . "/includes/functions.inc.php";
function test_plugin(): void {
if (!\defined('USE_CUSTOMTREE_PLUGIN') || USE_CUSTOMTREE_PLUGIN !== true) {
@@ -28,7 +30,7 @@ function test_plugin(): void {
*
* @return void
*/
function load_plugin(): void {
new CustomThemeTree();
}
add_action("after_setup_theme", "test_plugin");
//new CustomThemeTree();
add_action("after_setup_theme", "load_plugin");