Vendor registration form field validation

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Vendor registration form field validation

Viewing 1 reply thread
  • Author
    • #56510

      Hello again,

      Sorry if this has been asked before, is there a way we can place a validation for phone number field on vendor registration screen? As you can see from the screenshot, currently it accepts anything. I just want to make sure that only numbers are there in that field and at least 9-10 numbers in the input. I tried changing the input type from text to tel to see if it would work but it doesn’t.

      Thanks and regards,

      You must be logged in to view attached files.
    • #56674
      WCFM Forum


      Please use this code snippet –

      add_filter( 'wcfm_membership_registration_fields_phone', function( $phone_field ) {
      	if( isset( $phone_field['user_phone'] ) ) {
      		$phone_field['user_phone']['type'] = 'number';
      	return $phone_field;

      Thank You

Viewing 1 reply thread
  • The topic ‘Vendor registration form field validation’ is closed to new replies.