복붙노트

[WORDPRESS] WooCommerce : 체크 아웃에서 청구 필드의 변경 HTML 구조

WORDPRESS

WooCommerce : 체크 아웃에서 청구 필드의 변경 HTML 구조

해결법


  1. 1.

    function change_woocommerce_field_markup($field, $key, $args, $value) {
        if( $key === 'billing_first_name') {
            $field = 'my html';
        }
        return $field;
    } 
    
    add_filter("woocommerce_form_field_text","change_woocommerce_field_markup", 10, 4);
    
  2. from https://stackoverflow.com/questions/61319230/woocommerce-change-html-structure-of-billing-fields-in-checkout by cc-by-sa and MIT license