WordPress at a glance
function is not described


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.


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


$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

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;