Home Forums Plugin Support WP User Frontend Pro Retrive info from registration forms

This topic is: resolved

This topic contains 6 replies, has 2 voices, and was last updated by  rocketseven 6 years, 1 month ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3507

    rocketseven
    Participant
    Post count: 34

    Hello and thanks in advanced for you help.

    I've created a registration form with several infos to add by new user.
    The problem is: When the administrator receives the mail with the alert of a new registration, the mail shows just the new username and mail and do not show all the fields that i´ve put on that form.

    How can i make to receive those informations on the administrator mail?

    It looks like a very basic question, i know, but i'm not really a coder so this things appear to be difficult to solve….

    ?

    Thank you very much for your help

    #3511

    Tareq Hasan
    Keymaster
    Post count: 2831

    The new user notification is sent by a WP native function wp_new_user_notification(). There's no way to customize this function as this doesn't provide any filter. But as it's a pluggable function, if you define another function with the same name, your function will be used to send email for new users. So the solution is to put the user meta info on that function. You can use get_user_meta function to retrieve the user meta fields.

    #3621

    rocketseven
    Participant
    Post count: 34

    Thanks for your reply

    So its useless to define new extra fields in the registration forms because you do not have the capability to view or receive those informations. Is that right? Or i´m missing something?

    Or can i see/retrieve the informations from the extra custom fields elsewhere beside the e-mail received by administrator?

    Thank you very much for your help. My site is actually complet and ready to go on-line except this little (huge) detail that seems impossible to solve…

    Thank you very much for your answer.

    #3623

    Tareq Hasan
    Keymaster
    Post count: 2831

    WordPress usually saves all user information in the wp_usermeta table as user meta. WP User Frontend does the same, it saves all the user info in that table. So when a user is registering, they are saving there, so it's not useless.

    As WP sends a default user registration mail with it's wp_new_user_notification() function and there is no way to modify it, so you need to override that function. You could copy that function from WordPress core file and paste it in your themes functions.php and modify it send user meta fields as well. WP will use your themes function to send new user email notification from now on.

    #3626

    rocketseven
    Participant
    Post count: 34

    Thank you very much for your quick answer and explanation

    But has i wrote before, i´m not a coder (really) so all those function are like chinese Mandarin (:)) to me. I understand now that is something more complicated than i thought is was to achive this.

    I´ve built a registration form with lots of new custom fields with your plugin but i can´t seem to get access to those informations.

    Do you know any compatible plugin that manage to do that? (without writing code?)

    Thanks again for your help and sorry for all my ignorance regarding those issues that probably just make you losse your time…

    #3628

    Tareq Hasan
    Keymaster
    Post count: 2831

    I don't know of any plugin that does this. Code is necessary for this.

    #3630

    rocketseven
    Participant
    Post count: 34

    Ok thank you for your quick answer.

    Is it possible to think including this type of functionality in the next update?
    Your plugin is great but in fact, it is useless for a designer like me to add new custom fields to registration forms if its impossible to view that information.

    Imagine you just want to add a simple telephone number to the register form. You can´t access simple information from your user in the future…

    Thank you very much for all your answers and keep up with the good work

    Best

    R

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘Retrive info from registration forms’ is closed to new replies.