Archive for: February 2014

Tip Tuesday: WordPress URLs in JavaScript

| 0 comments

There are instances where you may need to use WordPress URLs in JavaScript files. However, hard-coding URLs is not an ideal solution, especially in situations where you have development and production environments. We can solve this by using the wp_localize_script()  …