Add customer download report section

This commit is contained in:
Caleb Burks 2017-12-13 23:29:12 -06:00
parent 665b3c8a1f
commit 345376bc20
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
?>
</td>
<td>
<label><?php esc_html_e( 'Downloads completed', 'woocommerce' ); ?></label>
<label><?php esc_html_e( 'Customer download report', 'woocommerce' ); ?></label>
<?php
$report_url = add_query_arg(
'permission_id',
@ -52,7 +52,7 @@ if ( ! defined( 'ABSPATH' ) ) {
admin_url( 'admin.php?page=wc-reports&tab=orders&report=downloads' )
);
echo '<a href="' . esc_url( $report_url ) . '">';
echo esc_html( number_format_i18n( $download->get_download_count() ) );
echo __( 'View Report', 'woocommerce' );
echo '</a>';
?>
</td>