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!
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!
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').
Thanks!
This topic has been closed to new replies.