Start time
This commit is contained in:
parent
77cee56ae8
commit
0de65b3a8d
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue