• When I go to Leanrpress -> Profile -> Enable default fields, they don’t display any required options (like the Custom register fields below do). How can I force the user to fill in the First name and Last name?

    PS: adding as “Custom register fields” does not solve my problem, because the data is saved in additional fields of the user record, and is not displayed as “Display name publicly as” in the user record, and consequently does not appear when generating the certificate.

    https://ibb.co/2S5jgKT

    Ty for help

Viewing 1 replies (of 1 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi luismoreiracesar,

    Thank you for reaching out. To enforce the user to fill in the First name and Last name fields, you can use the add_filter( ‘learn-press/after-form-register-fields’, ‘lp_add_default_fields’ ) hook available in LearnPress. This hook can be found in the wp-content/plugins/learnpress/inc/user/lp-user-functions.php file.

    You can reference the following link to view the code and understand how to modify it in your child theme

    By modifying this hook in your child theme, you can add the required attribute to the default fields.

    If you have any further questions, please let us know.

    Thank you!

    Brianvu-tp

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.