[wp-hackers] Network Activate and rewrite rules

Theodor Ramisch theodor_ramisch at hotmail.com
Sun Aug 22 00:09:53 UTC 2010


Hi all,

I'm currently developing a plugin which adds some rewrite rules. Because it is recommended not to call flush_rules() on every request, I do this once in the activation hook.

If somebody "network activates" the plugin, this hook is only called for the current blog. The plugin will be active, but all other blogs are missing the rewrite rules.

What is the recommended way to correct this behavior?

Best regards,

  Theodor
 		 	   		  


More information about the wp-hackers mailing list