Viewing 1 replies (of 1 total)
  • Try this in your theme’s functions.php

        add_action('um_submit_form_errors_hook', 'check_customer_code', 100 );
        function check_customer_code( $args ){
    
                    if ( isset( $args['customer_code'] ) && $args['customer_code'] != 'ABCDE' ) {
         $ultimatemember->form->add_error( 'customer_code', 'invalid code entered');
        }
    
Viewing 1 replies (of 1 total)
  • The topic ‘Registration Code’ is closed to new replies.