Support » Plugins » Getting the Plugin Directory

  • Resolved golddave


    I have a plugin that creates a link in a post. I’d like to add an icon to every link. The icon image file will live in the same directory as the plugin. How would I reference this directory programatically for the purpose of writing the img src tag?


Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami



    look at how other plugins handle paths.

    thats the easiest thing to do.



    OK. I’m an idiot. I can use dirname(__FILE__). I’ve been out of the php game for the last few months and I have to re-learn things that used to be simple to me.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting the Plugin Directory’ is closed to new replies.