• Hi, I’m using a custom field checkbox and making it required but didn’t work and the user account create without checking this checkbox could you please help me .

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ThimPress

    (@thimpress)

    Hi ralak,

    We check your site and see the checkbox run right like images.

    Thread Starter ralak

    (@ralak)

    Hi, yes it’s work because I’ve been edit the plugin and add the value of the ccs class $cf_class you add to the li , to the input checkbox but I don’t want to loose this edit each time the plugin updated

    /wp-content/plugins/learnpress/inc/user/lp-user-functions.php
    ——————————————–
    Line 2033:
    —————————-
    // required
    <label>
    <input name=”_lp_custom_register_form[<?php echo esc_attr( $value ); ?>]”
    type=”<?php echo esc_attr( $custom_field[‘type’] ); ?>”
    <?php echo $cf_class ;?>>
    <?php echo esc_html( $custom_field[‘name’] ); ?>
    </label>`

    • This reply was modified 2 years, 2 months ago by ralak.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom field in user register form’ is closed to new replies.