2017-04-07 136 views

回答

0

只需要在你的子主題的functions.php中添加這一條線上

add_filter('woocommerce_checkout_get_value','__return_empty_string',10); 
0

您可以使用woocommerce_checkout_get_value過濾器清除字段,但每次頁面加載時都會清除它們。

function clear_checkout_fields($input){ 
    return ''; 
} 
add_filter('woocommerce_checkout_get_value' , 'clear_checkout_fields'); 
相關問題