Escaping quotes while enqueuing scripts
Since you are using dollar sign in conjunction with some other variables, I assume you are trying to get a php variable inside your inline script. You will have 3 options. Closing and opening the quotes You can echo a variable in this way: echo ‘Hello’ . $world; Using double quotes The same above code … Read more