Adding passcode validation in the Register Form
To be able to add a passcode validation in the Register Form, you first need to create or add a text field with a meta key/field name “user_passcode” to the Register Form.
Go to wp-admin> Ultimate Member> Forms> Edit Default Registration
NOTE: We have created this code example to provide guidance and to make it easier for you to implement this code into your website. However, we are not able to provide any support when it comes to customizing the plugin. If you need help implementing this code, please hire a developer.
For the passcode to function, it requires customization. You can try this code: