WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

ReportExporter::get_export_percentage_complete() public WC 1.0

Get the completion percentage of a report export.

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

No Hooks.

Return

true|false|Int. Completion percentage, or false if export not found.

Usage

$result = ReportExporter::get_export_percentage_complete( $report_type, $export_id );
$report_type(string) (required)
Report type. E.g. 'customers'.
$export_id(string) (required)
Unique ID for report (timestamp expected).

Code of ReportExporter::get_export_percentage_complete() WC 5.3.0

<?php
public static function get_export_percentage_complete( $report_type, $export_id ) {
	$exports_status = get_option( self::EXPORT_STATUS_OPTION, array() );
	$status_key     = self::get_status_key( $report_type, $export_id );

	if ( isset( $exports_status[ $status_key ] ) ) {
		return $exports_status[ $status_key ];
	}

	return false;
}