Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories

Synchronize::get_progress()publicWC 1.0

Returns a value between 0 and 100 representing the percentage complete of the current sync.

Метод класса: Synchronize{}

Хуков нет.

Возвращает

int.

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

$Synchronize = new Synchronize();
$Synchronize->get_progress(): int;

Код Synchronize::get_progress() WC 8.7.0

public function get_progress(): int {
	return min( 100, max( 0, (int) get_option( self::SYNC_TASK_PROGRESS, 0 ) ) );
}