为此,我使用How can I modify a Woocommerce shipping label 答案代码,有一些变化,以满足我的需要。HTML: Standard Shipping (2-3 days): 3,95€ 所以标签标准发货(2-3天)必须显示自定义发货(4-6天)如果满足某个条件(在本例中:字段自定义_文本不为空)。{
$full_label = str_replace( "Standard Shipping (2-3 days)", "Shipping with customization