by Katsushi Kawamori on WordPress.org

Products
Displays the number of products downloaded by customers.
/** ==================================================
* Download Count for WooCommerce
*
* download_count_woo
* @param string $html html.
* @param int $count count.
*/
function download_countproduct( $html, $count ) {
$html = '
' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '';
return $html;
}
add_filter( 'download_count_woo', 'download_countproduct', 10, 2 );
/** ==================================================
* Download Count for WooCommerce
*
* download_count_woo_
* @param string $html html.
* @param int $count count.
*/
function download_countproduct_331( $html, $count ) {
$html = '
' . $count . ' ' . __( 'Downloads', 'woocommerce' ) . '';
return $html;
}
add_filter( 'download_count_woo_331', 'download_countproduct_331', 10, 2 );