wip trying to get the var name directly, first try not working
This commit is contained in:
@@ -44,9 +44,13 @@ function main_shortcode() {
|
||||
# https://wiki.php.net/rfc/nameof
|
||||
# but for now i have to declare both the variable and its name
|
||||
# (more : https://stackoverflow.com/q/255312/9497573)
|
||||
# add_var_to_front( array(
|
||||
# "myvar_1" => $myvar_1,
|
||||
# "myvar_2" => $myvar_2,
|
||||
# ));
|
||||
add_var_to_front( array(
|
||||
"myvar_1" => $myvar_1,
|
||||
"myvar_2" => $myvar_2,
|
||||
$myvar_1,
|
||||
$myvar_2,
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user