我正在使用以下代码更新WooCommerce中购物车和结帐页面上的发货文本
/* Change Text for Shipping message when shipping is $0.00 AND remove the "Shipping" text
*********************************************************************************************/
add_filter( \'woocommerce_cart_shipping_method_full_label\', \'add_free_shipping_label\', 10, 2 );
function add_free_shipping_label( $label, $method ) {
if ( $method->cost == 0 ) {
$label = \'<strong>$0.00</strong>\'; //not quite elegant hard coded string
} else {
$label = preg_replace( \'/^.+:/\', \'\', $label );
}
return $label;
}
它在那里正常工作,但在感谢和确认电子邮件上,它显示了“发货”一词,因为发货是0.00美元(免费)。修改装运部分的感谢和确认电子邮件上的装运输出的过滤器是什么?