Forums

[resolved] Where does WP store settings? (3 posts)

  1. CadetCrusher
    Member
    Posted 4 years ago #

    What are the variable names for user-defined settings? I'd like to use the user-defined content upload directory and site name in my plugin. I can't seem to find any documentation on where these settings can be retrieved.

    Thanks!

  2. Otto
    Tech Ninja
    Posted 4 years ago #

    The "Blog title" on the Options->General page can be accessed by calling get_option('blogname').

    The upload path (defaults to wp-content/uploads) can be accessed by calling get_option('upload_path').

  3. CadetCrusher
    Member
    Posted 4 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic