"Ẩn trường thông tin trong trang thanh toán của WooCommerce" nếu dịch kiểu này chắc cũng đúng anh em nhỉ :D

Mặc định WordPress đã cho chúng ta ẩn bớt các Field không sử dụng nhưng với mình là chưa đủ nên mình thường ẩn thêm các Field khác như State chẳn hạn. Vậy mình ẩn bằng cách nào dùng code hay dùng Plugin?
Dùng Code thêm vào file function.php
Bên dưới là đoạn code mình hay dùng, tùy vào các Field bạn muốn ẩn mà thêm hoặc bớt đi nhé!
// Remove checkout fields
add_action( 'init', 'grd_remove_woocommerce_styles_scripts', 99 );
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
function custom_override_checkout_fields( $fields ) {
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_state']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_country']);
unset($fields['shipping']['shipping_postcode']);
unset($fields['shipping']['shipping_country']);
return $fields;
}
Dùng Plugin

Thường thì mình không sử dụng nhưng nếu có Khách hàng yêu cầu và sẵn sàn trả phí thì mình sử dụng Plugin này https://woocommerce.com/products/woocommerce-checkout-field-editor/
Bạn cũng có thể tham khảo thêm nhiều thứ hay khác ở bài viết gốc: https://woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
Chúc anh em thành công!