added variables in create_html with compact
This commit is contained in:
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user