Using a WP Path in a Plugin (2 posts)

  1. matrym
    Posted 6 years ago #

    This is probably a basic question for most of you plugin programmers out there, but I'm a wordpress plugin noobie, and I can't seem to Google my way out of this problem.

    How do I use the wordpress path variable in a plugin? I'm looking for something like "stylesheet_directory" or "template_directory" but for the plugin. Whatever I try, it seems to end up being blank. Do I have to include a specific wordpress file at the top of the plugin or something?

    Thanks in advance.

  2. matrym
    Posted 6 years ago #

    For those who have the same question, use this:



    I figured it out from the tutorial here:


Topic Closed

This topic has been closed to new replies.

About this Topic