Start time

This commit is contained in:
Mike Jolley 2017-06-14 17:04:47 +01:00
parent 77cee56ae8
commit 0de65b3a8d
2 changed files with 13 additions and 2 deletions

View File

@ -79,6 +79,16 @@ abstract class WC_Product_Importer implements WC_Importer_Interface {
*/
protected $parsed_data = array();
/**
* Start time of current import.
*
* (default value: 0)
*
* @var int
* @access protected
*/
protected $start_time = 0;
/**
* Get file raw headers.
*

View File

@ -637,8 +637,9 @@ class WC_Product_CSV_Importer extends WC_Product_Importer {
* @return array
*/
public function import() {
$index = 0;
$data = array(
$this->start_time = time();
$index = 0;
$data = array(
'imported' => array(),
'failed' => array(),
'updated' => array(),