Title: Required standard fields
Last modified: July 4, 2024

---

# Required standard fields

 *  [luismoreiracesar](https://wordpress.org/support/users/luismoreiracesar/)
 * (@luismoreiracesar)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/required-standard-fields/)
 * 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](https://ibb.co/2S5jgKT)
 * Ty for help

Viewing 1 replies (of 1 total)

 *  Plugin Support [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/required-standard-fields/#post-17874420)
 * 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](https://plugins.trac.wordpress.org/browser/learnpress/trunk/inc/user/lp-user-functions.php)
   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)

The topic ‘Required standard fields’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/required-standard-fields/#post-17874420)
 * Status: not resolved