How to Pass PHP Data and Strings to JavaScript in WordPress

This one post by TutsPlus is JUST what I was needing this morning.  I got so excited when I found that there is a way to pass info from WordPress to the enqueued JavaScripts, that I could not help and put here the code that will do the trick and of course the original post.  For my (o other’s) future reference.

Original Post

UPDATE: I had to use this example instead from Pippins Plugins: Use wp_localize_script, It Is Awesome

Leave a Reply