We’ve all been there, we’ve needed to pass a variable into our script when working with WordPress. For things like passing the Template Directory URI across. How do we do it? Well, I’ll tell you. WordPress has a handy little function called wp_localize_script() to properly handle just this. You can...

iKreativ