2014-01-23 52 views

回答

0

插件添加到functions.php

add_filter('woocommerce_cart_shipping_method_full_label', 'remove_local_pickup_free_label', 10, 2); 
function remove_local_pickup_free_label($full_label, $method){ 
    if($method->id == 'local_pickup') $full_label = 'Local Pickup'; 
    return $full_label; 
} 
2

在主題functions.php文件中添加以下代碼

add_filter('woocommerce_cart_shipping_method_full_label', 'remove_local_pickup_free_label', 10, 2); 
function remove_local_pickup_free_label($full_label, $method){ 
    if($method->id == 'local_pickup') 
    $full_label = str_replace("(Free)","",$full_label); 
    return $full_label; 
} 
相關問題