I am creating a plugin.

I want to add a different options page, based on multisite or single site.

I need a code which can identify installation is Multisite or single site.

link|improve this question

45% accept rate
feedback

1 Answer

The most obvious choice would be the is_multisite() conditional template tag.

Used as such:

if ( is_multisite() ) {
    // Multisite is enabled;
    // do something
}
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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