WordPress at Your Fingertips
function is not described

WC_CSV_Batch_Exporter::get_percent_complete() public WC 3.1.0

Get total % complete.

{} It's a method of the class: WC_CSV_Batch_Exporter{}

No Hooks.

Return

Int.

Usage

$WC_CSV_Batch_Exporter = new WC_CSV_Batch_Exporter();
$WC_CSV_Batch_Exporter->get_percent_complete();

Changelog

Since 3.1.0 Introduced.

Code of WC_CSV_Batch_Exporter::get_percent_complete() WC 5.9.0

public function get_percent_complete() {
	return $this->total_rows ? floor( ( $this->get_total_exported() / $this->total_rows ) * 100 ) : 100;
}