🐛 - Corrige la gestion des chemins de composants dans TemplateLoader

This commit is contained in:
skycel 2025-02-06 05:26:39 +01:00
parent a25efe6fc4
commit bc01dc75a9

View File

@ -254,8 +254,8 @@ class TemplateLoader {
$template_path = get_template_directory() . "/" . TEMPLATES_DIR . "/" . TEMPLATES_SUBDIRS["components"];
self::$templates_parts[] = $template_path . "/" . $component_name . ".php";
$components[] = $template_path . "/" . $component_name . ".php";
do_action("template_render", self::$templates_parts, $hook_name);
do_action("template_render", $components, $hook_name);
}
}