Phone number – vendor registration

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 WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 2 reply threads
  • Author
    Posts
    • #82335
      sdel_nevo
      Participant

      Hi Guys

      is it possible to make the phone number field on the vendor registration form only accept numbers, it’s possible to put text into this field

      Steve

    • #82515
      WCFM Forum
      Keymaster

      Hi,

      Please use this code for the purpose –

      add_filter( 'wcfm_membership_registration_fields_phone', function( $phone_fields ) {
      	if( isset( $phone_fields['phone'] ) ) {
      		$phone_fields['phone']['type'] = 'number';
      	}
      	return $phone_fields;
      });

      Thank You

    • #82518
      sdel_nevo
      Participant

      Hi Guys

      that’s brilliant, many thanks for this it works brilliantly

      Steve

Viewing 2 reply threads
  • The topic ‘Phone number – vendor registration’ is closed to new replies.