How to add custom checkout fields in woocommerce wordpress
for add a custom field in checkout form in woocommerce use below code and customize as per your need. // below filter use for display field at frontend side add_filter( 'woocommerce_shipping_fields' , 'rj_shipping_phone_field' ); function rj_shipping_phone_field( $fields ) { $fields['shipping_phone'] = array( 'label' => __( 'Phone', 'woocommerce' ), 'required' => true, 'class' => array( 'form-row-first' ), 'clear' => true, 'validate' => array( 'phone' ), ); return $fields; } // below filter use for display custom field in admin side add_filter( 'woocommerce_admin_shipping_fields' , 'rj_admin_shipping_phone_field' ); function rj_admin_shipping_pho...