woof_wp_load_js
This hook allows to add custom JavaScript variables to the site front if necessary
add_action('woof_wp_load_js', function ($str) {
$str .= ';var my_var1="Hello";';
$str .= 'var my_var2=2023;';
return $str;
});
Troubles? Ask for Support!
