WordPress.org

Forums

Using a WP Path in a Plugin (2 posts)

  1. matrym
    Member
    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
    Member
    Posted 6 years ago #

    For those who have the same question, use this:

    get_bloginfo('wpurl')

    ---

    I figured it out from the tutorial here:

    http://www.devlounge.net/publik/Devlounge%20-%20How%20to%20Write%20a%20Wordpress%20Plugin.pdf

Topic Closed

This topic has been closed to new replies.

About this Topic