Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Ultimate Member plug in – registration form using code to validate approval

Home / Forums / Virtue Theme / Ultimate Member plug in – registration form using code to validate approval

This topic is: Not Resolved
[Not Resolved]
Posted in: Virtue Theme
January 26, 2016 at 5:18 pm

I have been trying to fix the UM registration form so a person who enters the correct Choice Partner code that the owners give them, they will be automatically approved and activated with a profile. And when a person enters an incorrect Choice Partner code, it should show an error message and stop registration. There is a help text to ask them to contact us for more details about the program and ability to set up an account.

Currently, I have it set up for admin review any registration applications. And if correct CPartner code, registration will go for review and approval/activation. If an incorrect CPartner code is entered, it simply returns to the registration page where the fields are still filled in, giving person another chance to put in correct CPartner code. There should be an error message that shows up with in incorrect code but doesn’t. It does with the other fields.

UM tech rep gave me some generic codes below (see link also) to insert but didn’t tell me where. Waiting on their developer reply as yet. Any ideas on what to do with these codes, if anything. Or have another idea to make it work the way I want it to work. Clients don’t want to have to review any submission…simply give them the CPartner code face-to-face so they can register and automatically be approved an account to access the benefit of the website as a Choice Partner.

They want this to be solved so it can be more officially launched within the next 48 hours with another domain name.

http://www.temp.mychoiceconnection.com/register/

Please read the above doc, you can run any test/condition on a field (where your validation takes place)
$ultimatemember->form->add_error( ‘user_login’, ‘Your username must not contain the word admin.’ );
Will add a custom error and stop user from registering

Any ideas appreciated.

PS I found another UM page about registration hooks. Don’t know if it would apply or not.

  • The forum ‘Virtue Theme’ is closed to new topics and replies.