I need to access the plugins directory in the client javascript file. I know that we have functions to get the path to the plugin directories using the php plugins_url() function.
However, I need to get this in my js file, where I need to put some images.
Any ideas?
PS: My js file is saved as a javascript file, and therefore I can not use php tags in it
source share