plugins_url not returning the plugin url
-
This is what I have
$imgpath=plugins_url('/images/'); die($imgpath);
I’m expecting this:
https://mydomain.co.uk/wp-content/plugins/my_plugin/images/I’m getting this.
https://mydomain.co.uk/wp-content/plugins/images/Am I using the wrong function?
The php file is in /wp-content/plugins/my_plugin/Obviously I don’t want to hard-code the path, but…
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘plugins_url not returning the plugin url’ is closed to new replies.