Forums

[resolved] Get blog_id in external files (wordpress mu) (3 posts)

  1. osynligstefan
    Member
    Posted 2 years ago #

    Hello!

    Is it possible to get the current blog id in external plugin files? I've solved it by always sending the blog_id in urls, but thats not optimal.

    Examples of where i need the blog id:
    - External ajax calls
    - Generated xml-files
    - Tinymce plugins (popup)
    ...

    Thanks

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    http://codex.wordpress.org/WPMU_Functions/get_current_site

    If that's not what you want, support for WordPress MU software is at http://mu.wordpress.org/forums

  3. osynligstefan
    Member
    Posted 2 years ago #

    The problem is, when including wp-functionality in an external file, wordpress doesn't know which blog im on so it defaults to the first one.

    I'll try my luck in the mu-forums, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags