我想在下载历史记录中下载文件名,而不是下载名称代码。
当$ download ['name']更改为$ file ['name']时,第一行将被删除
<tr class="edd_download_history_row">
<?php
$price_id = edd_get_cart_item_price_id( $download );
$download_files = edd_get_download_files( $download['id'], $price_id );
$name = $download['name'];
// Retrieve and append the price option name
if ( ! empty( $price_id ) && 0 !== $price_id ) {
$name .= ' - ' . edd_get_price_option_name( $download['id'], $price_id, $payment->ID );
}
do_action( 'edd_download_history_row_start', $payment->ID, $download['id'] );
?>
<td class="edd_download_download_name"><?php echo esc_html( $name ); ?></td>