WC_CSV_Batch_Exporter::get_percent_complete
Get total % complete.
Method of the class: WC_CSV_Batch_Exporter{}
No Hooks.
Returns
Int.
Usage
$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter(); $WC_CSV_Batch_Exporter->get_percent_complete();
Changelog
| Since 3.1.0 | Introduced. |
WC_CSV_Batch_Exporter::get_percent_complete() WC CSV Batch Exporter::get percent complete code WC 10.5.0
public function get_percent_complete() {
return $this->total_rows ? (int) floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100;
}