You appear to be a bot. Output may be restricted
Description
Return the calculated completion percentage
Usage
$int = EDD_Batch_Customers_Export::get_percentage_complete();
Parameters
Returns
int
Source
File name: easy-digital-downloads/includes/admin/reporting/export/class-batch-export-customers.php
Lines:
1 to 23 of 23
public function get_percentage_complete() { $percentage = 0; // We can't count the number when getting them for a specific download if( empty( $this->download ) ) { $total = EDD()->customers->count(); if( $total > 0 ) { $percentage = ( ( 30 * $this->step ) / $total ) * 100; } } if( $percentage > 100 ) { $percentage = 100; } return $percentage; }