Home > Wordpress JQuery

WordPress – Jquery get dynamic urls(admin_url, template_directory)

WordPress provides a series of methods and global variables for getting the current url, template directory, plugin directory, includes directory, admin directory that saves us from using absolute paths. On the other hand JQuery under wordpress does not include such urls so we end up using absolute urls. A workaround for this

This Article is TAGGED in , , , . Read more