The MU forums have moved to WordPress.org

information about building plugins (4 posts)

  1. manuelsechi
    Member
    Posted 16 years ago #

    hi all
    i'm starting to build a plugin form wordpress MU but i need some information I can't find in documentation...

    I need to know how to get env variable like the name of the blog, the path of the blog and so on

    is there an object that contains this info?
    thanx a lot
    Manuel

  2. drmike
    Member
    Posted 16 years ago #

    It's pretty much like regular wordpress. get_option is the function call that grabs data out of the blog's option table.

  3. manuelsechi
    Member
    Posted 16 years ago #

    thanx drmike
    i just found that $wpdb contains all about the DB in use, and $current_user all about the blog user.
    just one thing: do u know how can I put a file in the root of the blog? something like http://myblog.blogs.com/file.txt and not http://myblog.blogs.com/files/file.txt

    thank you

  4. tene
    Member
    Posted 16 years ago #

    Re your second question about a file in the root of a WPMU blog - trickier than it might appear. A dynamically generated page is worth understanding if you are tackling this. Check out how this plugin does it: KB Robots.txt.

About this Topic

  • Started 16 years ago by manuelsechi
  • Latest reply from tene