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.

How is plugin network activate different from normal activation by implementation? What is done/not done in network activation that is done/not done in activation?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Network activation will activate a plug-in for every site in a network whereas regular activation will only activate a plug-in for the site you're currently on. As far as implementation goes, there is one other important difference:

If your plug-in is built to do something when it's activated (via register_activation_hook()), this will fire automatically when you activate a plug-in normally, but it will not fire for a network-activated plug-in until you visit the admin screen for each blog.

So if major database updates are tied in to register_activation_hook() they won't occur until you log in to the other sites.

share|improve this answer
    
The super-admin or the admin should visit the site.com/subblog/wp-admin URL for plugins' activation hooks to be executed? Or do you mean that they must go to the plugin page of the sub blog and then click on the "activate" link? –  rsman Nov 17 '10 at 2:06
    
They must visit the wp-admin url for the plug-ins' activation hooks to be executed. –  EAMann Nov 17 '10 at 2:09

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.