updated plugin Easy Digital Downloads version 3.1.2

This commit is contained in:
2023-06-28 12:45:44 +00:00
committed by Gitium
parent 44df590080
commit f710fa7de2
120 changed files with 5556 additions and 3347 deletions

View File

@ -92,6 +92,26 @@ class Orders extends Base {
}
}
/**
* Recalculates all customer values.
*
* @since 3.1.2
* @return void
*/
private function recalculate_customer_values() {
$customers = edd_get_customers(
array(
'number' => 9999999,
)
);
if ( ! empty( $customers ) ) {
foreach ( $customers as $customer ) {
$customer->recalculate_stats();
}
}
}
/**
* Calculate the percentage completed.
*