Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Registration form
- This topic has 3 replies, 2 voices, and was last updated 5 years, 4 months ago by WCFM Forum.
Viewing 3 reply threads
- AuthorPosts
- July 30, 2019 at 7:56 pm #74567r_guayaquilParticipant
Hi,
Is it possible to create different registration forms for each membership?
You gave this code for the city and state fields to be required. I also need the name and last name field to be required.Please help me with that!
add_filter( 'wcfm_membership_registration_fields_address', function( $address_fields ) { if( isset( $address_fields['city'] ) ) { $address_fields['city']['custom_attributes'] = array( 'required' => 1 ); } if( isset( $address_fields['state'] ) ) { $address_fields['state']['custom_attributes'] = array( 'required' => 1 ); } return $address_fields; }, 50 );
- August 3, 2019 at 6:21 am #74940WCFM ForumMember
Hi,
Is it possible to create different registration forms for each membership?
– This is not possible right now.
You gave this code for the city and state fields to be required. I also need the name and last name field to be required.Please help me with that!
– Here is your code for the purpose –
add_filter( 'wcfm_membership_registration_fields', function( $registration_fields ) { if( isset( $registration_fields['first_name'] ) ) { $registration_fields['first_name']['custom_attributes'] = array( 'required' => 1 ); } if( isset( $registration_fields['last_name'] ) ) { $registration_fields['last_name']['custom_attributes'] = array( 'required' => 1 ); } return $registration_fields; }, 50 );
Thank You
- August 3, 2019 at 8:31 pm #75080r_guayaquilParticipant
Hi,
Thanks a lot!
- August 5, 2019 at 12:33 pm #75308WCFM ForumMember
You are welcome 🙂
- AuthorPosts
Viewing 3 reply threads
- The topic ‘Registration form’ is closed to new replies.