Reply To: Phone Number Validation

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




Currently, input mask is only available for phone field. Input masks on the billing and shipping phone fields are missing. We will introduce input masks to these fields soon.

Adding billing_phone in the field name only doesnot work because the ‘user_registration_’ prefix will be added to all custom fields.

However, you can add the billing_phone to the field name of phone field and donot add prefix with the following code.

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

	$fields[] = 'phone';

	return $fields;

Let me know if you have any further confusion.

WPEverest Support