Reply To: Phone Number Validation

Home Forums User Registration Phone Number Validation Reply To: Phone Number Validation



Hello again,

Can you please be more clear what you are trying to acheive. If you are trying to add billing_phone with custom number field? Add meta key billing_phone to the field name option, instead of number_1233432345 and the following codes to your child theme’s functions.php

add_action( 'user_registration_fields_without_prefix', 'ur_add_no_prefix' );
function ur_add_no_prefix( $fields ) {

    $fields[] = 'number';

    return $fields;

Hope this helps!

WPEverest Support