logs_table_creator = $logs_table_creator; $this->license_timer = $license_timer; } /** * This listener is called when a new blog is created in a multisite. * * @since 0.9.19 * @hook wpmu_new_blog * @param int $blog_id The newly created ID of the blog in the network. */ public function listen($blog_id) { if (is_plugin_active_for_network('affilicious/affilicious.php')) { Network_Helper::for_blog($blog_id, function() { $this->logs_table_creator->create(); $this->license_timer->activate(); }); } } }