use compact with add_var_to_front

This commit is contained in:
asus
2024-02-08 14:43:25 +01:00
parent 9eebe46efe
commit 070364c992
3 changed files with 13 additions and 26 deletions

View File

@@ -1,10 +1,5 @@
<?php
function template($file) {
$template_dir_path = plugin_dir_path(__DIR__).'html/templates/';
include($template_dir_path.$file);
}
# using ob_start() and ob_get_clean()
# allows to have php expansion inside the html loaded
# in opposition to the methode file_get_contents()