Automattic\WooCommerce\Admin
ReportsSync::get_import_totals()
Get the import totals for all syncs.
Method of the class: ReportsSync{}
No Hooks.
Return
Array
.
Usage
$result = ReportsSync::get_import_totals( $days, $skip_existing );
- $days(int|true|false) (required)
- Number of days to import.
- $skip_existing(true|false) (required)
- Skip existing records.
ReportsSync::get_import_totals() ReportsSync::get import totals code WC 8.7.0
public static function get_import_totals( $days, $skip_existing ) { $totals = array(); foreach ( self::get_schedulers() as $scheduler ) { $items = $scheduler::get_items( 1, 1, $days, $skip_existing ); $totals[ $scheduler::$name ] = $items->total; } return $totals; }