WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin

ReportsSync::regenerate_report_data() public WC 1.0

Regenerate data for reports.

{} Это метод класса: ReportsSync{}

Хуки из метода
Возвращает

Строку.

Использование

$result = ReportsSync::regenerate_report_data( $days, $skip_existing );
$days(число/true/false) (обязательный)
Number of days to import.
$skip_existing(true/false) (обязательный)
Skip exisiting records.

Код ReportsSync::regenerate_report_data() WC 4.7.0

<?php
public static function regenerate_report_data( $days, $skip_existing ) {
	if ( self::is_importing() ) {
		return new \WP_Error( 'wc_admin_import_in_progress', __( 'An import is already in progress.  Please allow the previous import to complete before beginning a new one.', 'woocommerce' ) );
	}

	self::reset_import_stats( $days, $skip_existing );
	foreach ( self::get_schedulers() as $scheduler ) {
		$scheduler::schedule_action( 'import_batch_init', array( $days, $skip_existing ) );
	}

	/**
	 * Fires when report data regeneration begins.
	 *
	 * @param int|bool $days Number of days to import.
	 * @param bool     $skip_existing Skip exisiting records.
	 */
	do_action( 'woocommerce_analytics_regenerate_init', $days, $skip_existing );

	return __( 'Report table data is being rebuilt.  Please allow some time for data to fully populate.', 'woocommerce' );
}