Is it possible for the Overview.php shown in the admin dashboard to include the total daily downloads stat?
Something like:
<?php
// Get start and end timestamps for the current day
$s = strtotime(date(“Y-m-d 00:00:00”));
$e = time();
// Retrieve daily downloads within the specified date range
$daily_downloads = $wpdb->get_var(“SELECT SUM(meta_value) FROM {$wpdb->prefix}postmeta WHERE meta_key = ‘__wpdm_download_count’ AND UNIX_TIMESTAMP(date) > $s AND UNIX_TIMESTAMP(date) < $e”);
// Output the daily downloads
echo ‘<span class=”badge pull-right”>’ . $daily_downloads . ‘</span>’;
?>
<?php _e( “Daily Downloads” , “download-manager” ); ?>