/** * Creates categories in multisite. */ private function create_categories() { if (!$this->blog_cache) { $this->blog_cache = wp_get_sites(); } foreach ($this->blog_cache as $blog) { $this->categorie_creator->create_categories_from_lng($blog); } self::$show_success_msg = TRUE; }