WC_CSV_Batch_Exporter::get_percent_complete() public WC 3.1.0
Get total % complete.
{} Это метод класса: WC_CSV_Batch_Exporter{}
Хуков нет.
Возвращает
Число.
Использование
$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter(); $WC_CSV_Batch_Exporter->get_percent_complete();
Список изменений
С версии 3.1.0 | Введена. |
Код WC_CSV_Batch_Exporter::get_percent_complete() WC CSV Batch Exporter::get percent complete WC 5.0.0
public function get_percent_complete() {
return $this->total_rows ? floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100;
}