Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Synchronize::get_progress
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() Synchronize::get progress WC 10.3.6
public function get_progress(): int {
return min( 100, max( 0, (int) get_option( self::SYNC_TASK_PROGRESS, 0 ) ) );
}