예제 #1
0
/**
 * Displays relevant HTML content for plugin.
 */
function wpml2mlp_show_import()
{
    if (Wpml2mlp_Prerequisites::is_mlp_plugin_active()) {
        Wpml2mlp_Importer::display();
    }
    Wpml_Xliff_Export::display();
}
예제 #2
0
 /**
  * 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;
 }