WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is the call to determine, from a theme's functions.php whether the site is an MU site or not?

Updated with answer:

$dir = 
 is_multisite() ? 'wp-content/blogs.dir/'.$current_site->blog_id.'/files/' 
 : 'wp-content/uploads/';
share|improve this question
up vote 2 down vote accepted

Try the is_multisite() conditional, more documentation here: http://codex.wordpress.org/Function_Reference/is_multisite

You may find the is_main_site() conditional useful as well. Just note that is_main_site() will always be true if is_multisite() is false.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.