• Resolved nendara

    (@nendara)


    I am adding special custom fields such as Upload file (Instructors CV) and a checkbox to accept terms and conditions in the instructor registration form.

    As seen in the link, my html code is working:

    <div class="tutor-form-col-6">
                <div class="tutor-form-group">
                    <input type="checkbox" id="aceptar" name="aceptar"
             checked> <p>Hola. ?Queréis visitar el sitio web <a href="https://www.google.com">Google</a>?
             
                </div>
            </div>
            
        </div>
    
             <div class="tutor-form-row"> 
            <div class="tutor-form-col-6">
                <div class="tutor-form-group">
                    <label for="cv_no">Selecciona un archivo con tu CV:</label>
                    <input type="file" id="cv_no" name="cv_no">
    
                </div>
            </div>  

    Now. I need help in making them work. I have these function.php files but they don’t work:

    }
        add_filter('tutor_instructor_registration_required_fields', 'required_checkbox_callback');
    if ( ! function_exists('required_checkbox_callback')){
        function required_checkbox_callback($atts){
            $atts['check_no'] = 'Debes aceptar el checkbox para continuar';
            return $atts;
        }
    }
    add_filter('tutor_instructor_registration_required_fields', 'required_cv_no_callback');
    if ( ! function_exists('required_cv_no_callback')){
        function required_cv_no_callback($atts){
            $atts['cv_no'] = 'Debes Subir tu CV';
            return $atts;
        }
    }
    add_action('user_register', 'add_cv_after_user_register');
    add_action('profile_update', 'add_cv_after_user_register');
    if ( ! function_exists('add_cv_after_user_register')) {
        function add_cv_after_user_register($user_id){
           
            }

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello @nendara,

    Did you get this to work? If not, I would suggest you to hire a developer. We do not have the resources to help with custom development at this moment.

Viewing 1 replies (of 1 total)
  • The topic ‘Function.php not working (Required upload files and Checkbox fields)’ is closed to new replies.