Automattic\WooCommerce\Admin

ReportsSync::get_import_stats()public staticWC 1.0

Get stats for current import.

Method of the class: ReportsSync{}

No Hooks.

Return

Array.

Usage

$result = ReportsSync::get_import_stats();

ReportsSync::get_import_stats() code WC 7.1.0

public static function get_import_stats() {
	$import_stats                 = get_option( ImportScheduler::IMPORT_STATS_OPTION, array() );
	$import_stats['is_importing'] = self::is_importing();

	return $import_stats;
}