Version Description
- Tons of bug fixes, updates, and additional features.
Download this release
Release Info
Developer | soflyy |
Plugin | Import any XML or CSV File to WordPress |
Version | 2.13 |
Comparing to | |
See all releases |
Code changes from version 2.12 to 2.13
- plugin.php +25 -18
- readme.txt +6 -2
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- screenshot-4.png +0 -0
plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP All Import
|
4 |
Plugin URI: http://www.wpallimport.com/upgrade-to-pro
|
5 |
Description: The most powerful solution for importing XML and CSV files to WordPress. Create Posts and Pages with content from any XML or CSV file. Perform scheduled updates and overwrite of existing import jobs. Free lite edition.
|
6 |
-
Version: 2.
|
7 |
Author: Soflyy
|
8 |
*/
|
9 |
/**
|
@@ -64,6 +64,8 @@ final class PMXI_Plugin {
|
|
64 |
*/
|
65 |
const FILE = __FILE__;
|
66 |
|
|
|
|
|
67 |
/**
|
68 |
* Return singletone instance
|
69 |
* @return PMXI_Plugin
|
@@ -322,8 +324,6 @@ final class PMXI_Plugin {
|
|
322 |
}
|
323 |
}
|
324 |
|
325 |
-
$this->__ver_2_06_load_options_add();
|
326 |
-
|
327 |
return FALSE;
|
328 |
}
|
329 |
|
@@ -412,18 +412,6 @@ final class PMXI_Plugin {
|
|
412 |
}
|
413 |
}
|
414 |
|
415 |
-
/**
|
416 |
-
*
|
417 |
-
*
|
418 |
-
*
|
419 |
-
*/
|
420 |
-
public function __ver_2_06_load_options_add() {
|
421 |
-
$table = $table = $this->getTablePrefix() . 'templates';
|
422 |
-
global $wpdb;
|
423 |
-
$wpdb->query("ALTER TABLE {$table} ADD options TEXT NOT NULL");
|
424 |
-
$wpdb->query("ALTER TABLE {$table} ADD scheduled VARCHAR(64) NOT NULL");
|
425 |
-
}
|
426 |
-
|
427 |
/**
|
428 |
* Method returns default import options, main utility of the method is to avoid warnings when new
|
429 |
* option is introduced but already registered imports don't have it
|
@@ -433,16 +421,14 @@ final class PMXI_Plugin {
|
|
433 |
'type' => 'post',
|
434 |
'custom_type' => '',
|
435 |
'categories' => '',
|
436 |
-
'categories_delim' => ',',
|
437 |
'tags' => '',
|
438 |
'tags_delim' => ',',
|
439 |
'post_taxonomies' => array(),
|
440 |
-
'post_taxonomies_delim' => array(),
|
441 |
'parent' => '',
|
442 |
'order' => '0',
|
443 |
'status' => 'publish',
|
|
|
444 |
'page_taxonomies' => array(),
|
445 |
-
'page_taxonomies_delim' => array(),
|
446 |
'date_type' => 'specific',
|
447 |
'date' => 'now',
|
448 |
'date_start' => 'now',
|
@@ -474,6 +460,27 @@ final class PMXI_Plugin {
|
|
474 |
'scheduled_period' => ''
|
475 |
);
|
476 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
477 |
}
|
478 |
|
479 |
PMXI_Plugin::getInstance();
|
3 |
Plugin Name: WP All Import
|
4 |
Plugin URI: http://www.wpallimport.com/upgrade-to-pro
|
5 |
Description: The most powerful solution for importing XML and CSV files to WordPress. Create Posts and Pages with content from any XML or CSV file. Perform scheduled updates and overwrite of existing import jobs. Free lite edition.
|
6 |
+
Version: 2.13
|
7 |
Author: Soflyy
|
8 |
*/
|
9 |
/**
|
64 |
*/
|
65 |
const FILE = __FILE__;
|
66 |
|
67 |
+
public static $csv_mimes = array('text/comma-separated-values','text/csv','application/csv','application/excel','application/vnd.ms-excel','application/vnd.msexcel','text/anytext', 'text/plain');
|
68 |
+
|
69 |
/**
|
70 |
* Return singletone instance
|
71 |
* @return PMXI_Plugin
|
324 |
}
|
325 |
}
|
326 |
|
|
|
|
|
327 |
return FALSE;
|
328 |
}
|
329 |
|
412 |
}
|
413 |
}
|
414 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
/**
|
416 |
* Method returns default import options, main utility of the method is to avoid warnings when new
|
417 |
* option is introduced but already registered imports don't have it
|
421 |
'type' => 'post',
|
422 |
'custom_type' => '',
|
423 |
'categories' => '',
|
|
|
424 |
'tags' => '',
|
425 |
'tags_delim' => ',',
|
426 |
'post_taxonomies' => array(),
|
|
|
427 |
'parent' => '',
|
428 |
'order' => '0',
|
429 |
'status' => 'publish',
|
430 |
+
'page_template' => 'default',
|
431 |
'page_taxonomies' => array(),
|
|
|
432 |
'date_type' => 'specific',
|
433 |
'date' => 'now',
|
434 |
'date_start' => 'now',
|
460 |
'scheduled_period' => ''
|
461 |
);
|
462 |
}
|
463 |
+
|
464 |
+
/*
|
465 |
+
* Convert csv to xml using yahoo API
|
466 |
+
*/
|
467 |
+
public static function csv_to_xml($csv_url){
|
468 |
+
|
469 |
+
include_once(self::ROOT_DIR.'/libraries/XmlImportCsvParse.php');
|
470 |
+
|
471 |
+
$csv = new PMXI_CsvParser($csv_url);
|
472 |
+
|
473 |
+
return $csv->toXML();
|
474 |
+
|
475 |
+
}
|
476 |
+
/*
|
477 |
+
*
|
478 |
+
* Detect CSV file
|
479 |
+
*
|
480 |
+
*/
|
481 |
+
public static function detect_csv($type){
|
482 |
+
return in_array($type, self::$csv_mimes);
|
483 |
+
}
|
484 |
}
|
485 |
|
486 |
PMXI_Plugin::getInstance();
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: soflyy
|
3 |
Tags: wordpress, xml, csv, datafeed, import
|
4 |
Requires at least: 3.0
|
5 |
-
Tested up to: 3.4.
|
6 |
-
Stable tag: 2.
|
7 |
|
8 |
The most powerful tool for importing any CSV or XML feed to WordPress.
|
9 |
|
@@ -65,5 +65,9 @@ Use pretty much any delimiter you want. It has to work with the [fgetcsv](http:/
|
|
65 |
|
66 |
== Changelog ==
|
67 |
|
|
|
|
|
|
|
|
|
68 |
= 2.12 =
|
69 |
* Initial release on WordPress.org.
|
2 |
Contributors: soflyy
|
3 |
Tags: wordpress, xml, csv, datafeed, import
|
4 |
Requires at least: 3.0
|
5 |
+
Tested up to: 3.4.2
|
6 |
+
Stable tag: 2.13
|
7 |
|
8 |
The most powerful tool for importing any CSV or XML feed to WordPress.
|
9 |
|
65 |
|
66 |
== Changelog ==
|
67 |
|
68 |
+
= 2.13 =
|
69 |
+
* Tons of bug fixes, updates, and additional features.
|
70 |
+
|
71 |
+
|
72 |
= 2.12 =
|
73 |
* Initial release on WordPress.org.
|
screenshot-1.png
DELETED
Binary file
|
screenshot-2.png
DELETED
Binary file
|
screenshot-3.png
DELETED
Binary file
|
screenshot-4.png
DELETED
Binary file
|