コード例 #1
0
function wpml_st_parse_config($file)
{
    require_once WPML_ST_PATH . '/inc/admin-texts/wpml-admin-text-import.class.php';
    $config = new WPML_Admin_Text_Configuration($file);
    $import = new WPML_Admin_Text_Import();
    $import->parse_config($config->get_config_array());
}
コード例 #2
0
function wpml_st_parse_config($file)
{
    global $wpdb;
    require_once WPML_ST_PATH . '/inc/admin-texts/wpml-admin-text-import.class.php';
    $config = new WPML_Admin_Text_Configuration($file);
    $st_records = new WPML_ST_Records($wpdb);
    $import = new WPML_Admin_Text_Import($st_records);
    $import->parse_config($config->get_config_array());
}