added variables in create_html with compact

This commit is contained in:
asus
2024-02-08 15:24:22 +01:00
parent 070364c992
commit 2f62f06f04
9 changed files with 37 additions and 14 deletions

View File

@@ -43,10 +43,21 @@ function main_shortcode() {
"myvar_2",
));
return create_html( array(
"index.html",
"index2.html",
));
$names = ["hugo", "camille"];
$ages = ["13", "34", "56"];
$html_front = create_html(
array(
"index.html",
"index2.html",
),
compact(
"names",
"ages",
)
);
return $html_front;
}
add_shortcode('fipf_wp_plugin', 'main_shortcode');