Retrive info from registration forms

This topic contains 6 reply and 2 voices, and was last updated by rocketseven 11 years, 6 months ago
Viewing 6 Posts - 1 through 6 (of 6 total)
Author Posts
May 11, 2013 at 1:27 pm 3507
rocketseven 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
May 11, 2013 at 3:03 pm 3511
Tareq Hasan Tareq Hasan

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.

May 14, 2013 at 6:55 pm 3621
rocketseven rocketseven

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.

May 14, 2013 at 7:15 pm 3623
Tareq Hasan Tareq Hasan

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.

May 14, 2013 at 7:48 pm 3626
rocketseven rocketseven

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…

May 14, 2013 at 8:06 pm 3628
Tareq Hasan Tareq Hasan

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

May 14, 2013 at 8:29 pm 3630
rocketseven rocketseven

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 6 Posts - 1 through 6 (of 6 total)