Rename the download table header in my account in WooCommerce

Rename the download table header in my account in WooCommerce on child sites.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'woocommerce_account_downloads_columns', 'wc_rename_downloads_page_columns' );
 
function wc_rename_downloads_page_columns( $cols ) {
   $cols['download-remaining'] = 'New Title';
   return $cols;
}