How include mask in the Woocommerce fields? E.g. Phone: (99) 9999-9999
问题 According to the WC docs, if I want to add a new field in the checkout area I should write the following code in functions.php: /* Add the field to the checkout*/ add_action('woocommerce_after_order_notes', 'my_custom_checkout_field'); function my_custom_checkout_field( $checkout ) { echo '<div id="my_custom_checkout_field" class="my_new_field"><h2>' . __('My Field') . '</h2>'; woocommerce_form_field( 'my_field_name', array( 'type' => 'text', 'class' => array('my-field-class form-row-wide'),