I've been working on migrating one of my plugins to support multisite installs and am attempting to figure out the cleanest way to handle the following series of events:
- Plugin is Network Activated
- New site is added
I'm currently listening to the activation hook which works for every other case, both individual activations and site-wide ones, but I'm not getting an activation hit when the new site is added. Incidentally, this strikes me as a bug in WP core... In any event, I need to catch this series of events and run activation things.
I was looking at combining the wpmu_create_blog hook and is_plugin_active_for_network, but I'm not sure if there might fingers crossed be a better way to do this.