1

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.

1 Answer 1

4

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

Used as such:

if ( is_multisite() ) {
    // Multisite is enabled;
    // do something
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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