• Hello,

    I want to add two more fields in the Learnpress registration form, but I can’t find how to do that !
    I tried installing Buddypress but it doesn’t work, and I also tried to look into the code, but I only find php files and I don’t know how to edit them.
    Would someone have a solution for me ?

    Thank You

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi, I want to add phone, first name , last name to the Learnpress registration form.
    but I can’t find how to do that !
    Can anyone help for this?

    I am also looking for the solution to it.

    Did you get a solution? I need to do the same

    Dear friends,
    You can use Easy Registration forms for this purpose. Add a link of registraion form in your menu.
    Disable registration in settings of learnpress — profile.
    Enable login form

    Yes, but which database does it populate? if I need to create the registration form at the time of payment, how do I do it?

    Hello, isn’t this problem solved yet and I need more fields for customer registration, and my certificates must have a unique number when they are issued, these are not difficult solutions and I don’t understand why they don’t add them to an update.

    abashasan

    (@abashasan)

    Hi
    open up “class-lp-shortcode-register-form.php” file which is in “inc/shortcodes” directory
    and add your field codes their.
    such as adding phone field as follow

    ‘reg_phone’ => array(
    ‘title’ => __( ‘Phone’, ‘learnpress’ ),
    ‘type’ => ‘text’,
    ‘placeholder’ => __( ‘Phone Number’, ‘learnpress’ ),
    ‘saved’ => LP_Request::get_string( ‘reg_phone’ ),
    ‘id’ => ‘reg_phone’,
    ‘required’ => true
    ),

    vranik

    (@vranik)

    Hi @abashasan,
    thanks for the code. I was successful to add it to the form.

    Where do I find the information the user provided?
    Let’s say I ask them to fill in a phone number, date of birth and address. Where can I then see the info?

    Also, can I add these to the user lp-profile so that they can change things later if neccessary?

    Thanks

    Hi all,
    Yes the phone is just in the view and not being inserted into tha database therefore cannot be retrieved in profile menu.
    So how to insert them into the database?
    How to send additional datas to admin via email after registration? Automatic mail contains only user and pass that goes to admin. Would be nice to append more fields.
    Thanks

    hi.
    LP uses the default WP user profile for LP users, so it actually uses the same table to store data (ie all new users are added to this table). This means the table fields for wp_users are fixed (cant add extra fields). However, you can have another table that stores the extra fields (most custom form generation plugins do this). This extra table needs to be linked to the wp_users table through a key (unique identifier in the new table that relates to the wp_user row / user). This basically tells the new table that the data in row ‘x’ belongs to user ‘y’ from the wp_users table.
    Now that we have the technical garble out of the way, the short story is this: You can use a custom registration plugin like “Ultimate Member” or “Registration Magic” which have the option to create custom user registration forms that store user data in wp_users and a custom table. You can access the custom fields from this new custom table using available functions from these plugins (e.g. if you use Ultimate member, you can use the custom function “um_user()” to display the user data. You may also view the data directly using phpmyadmin. Hope this helps

    Goodluck!

    Hello,

    The great news is that that the latest update (today that is version 4.0 and the updated 4.0 is now 4.0.7 when I write this) of their LP plugin improved and updated and made possible most of the issues you ask.

    So my suggestion is to update to 4.0 and higher.

    For instance, the Lp Profile page/login and register page now allow for added form fields. Look in the plugin settings tabs.

    They updated the Lp Profile / Login page so there is no need for other plugins for logn and register pages.

    The User pgae / Lp Profile page looks much better and way more intuitive. No old boring WordPress Default user login page.

    This is/was a big update to their LMS Plugin, so be aware to save your wordpress at least Dasboard/Settings or Tools/Export. And a backup plugin if you have that too. In case anything happens .

    I personally is very happy with their new imporved technically & visually (UX/UI) LMS Plugin.

    Ive uninstalled several plugins I no longer need. On both my own site and a clients site I also built.

    / Stefan L

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Customize Learnpress registration form’ is closed to new replies.