[wp-hackers] Plugins and network activations

Tommy tom at tommyleunen.com
Tue Jun 28 13:19:17 UTC 2011

 For me, I noticed a strange thing about network activation.

 I made a little test with 2 blogs and a network admin 
 activation/deactivation (register_activation_hook / 
 register_deactivation_hook). In the activation, I create a table for 
 each blog, and in the deactivation, I remove the table.

 My results are :
 - The activation is triggered for each blog. (Actually, only main blog 
 at this time, but when I go into the dashboard of the second blog, it 
 seems to be activate at this time because I see the table into my DB)
 - For the deactivation, only the main blog is triggered, even I go into 
 the dashboard of the second blog.

 So, why I didn't have the same behavior for Activation/Deactivation ?



 On Tue, 28 Jun 2011 08:56:31 -0400, Dino Termini 
 <dino at duechiacchiere.it> wrote:
>> The correct solution is to not have a table per blog in a Multisite 
>> install.
> True, but what about uninstalling the plugin? How do I make sure no
> other instances are still referencing the global table?
> Thank you,
> Dino.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list