Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am developing a plugin, which will be used on single site, as well as multi-site.

How to make plugin active network-wide, code required.

Also, how to save settings network-wide?

share|improve this question

1 Answer 1

Plugins can be activated network-wide by using the "Network Activate" link, or by placing the Plugin's folder inside the \wp-content\mu-plugins directory.

For network-wide settings versus site-specific settings, I would look at how other Plugins implement such settings, such as WordPress MU Domain Mapping.

share|improve this answer
    
Agreed - when in doubt, see how someone else has solved the problem and adapt it into your own code. –  SickHippie Mar 6 '12 at 0:07

Your Answer

 
discard

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.