by Rafał Gicgier | Oct 12, 2013 | JavaScript, WP |
Ok, my previous post is ok, but it doesn’t make a usage of a fabulous function built into WP core – wp_localize_script What I did wrong previously was that I hardcoded the variable into the footer, hence if the file I in which I wanted to use the variable...