更新时间:2023-12-03 09:07:16
似乎没有任何过滤器可以执行此操作,因此您需要将\templates\order\order-downloads.php
模板文件复制到子主题文件夹中并进行修改到该文件的下一行.
There doesn't seem to be any filters to do that so you'd need to copy the \templates\order\order-downloads.php
template file into your child theme folder and make modifications to the following line in that file.
case 'download-file':
echo '<a href="' . esc_url( $download['download_url'] ) . '" class="woocommerce-MyAccount-downloads-file button alt">' . esc_html( $download['download_name'] ) . '</a>';
break;