-
Is there an action or a filter I can use to modify form data after they are submitted, but just before they are saved?
I’m trying to make a registration form with username, display_name and password but whithout email address (my user has to register by cell-number as username and they will receive a confirmation code via sms), so I’d like to generate a dummy email address after the form is submitted, to make the registration process go through.Please help!
I’m on:
Wordpress 4.0.1
UserPro 2.16Hello ,
Apologies currently we do not have any such feature.Please feel free to let us know if there is anything else we can do to help you.
Thank you!I’ve resolved customizing the register template and adding an hidden input field named user_email, already filled with a dummy email address (using $uniq_id also).
As I have an italian cell number as username, I’ve then modified plugin’s ajax.php adding a new ajax_callback to check the correct syntax of the number.Please consider to add some do_action before the most important action of your plugin, so developer can manipulate data after/before they are submitted, loaded, saved to db etc etc.
By the way, can I execute some code every time user profiles are saved? I know userpro sends an email at every profile change and I’d like to do some other actions on the saved data (without changing plugin code).I’ve tried these wp hooks
add_action(‘personal_options_update’, ‘update_extra_profile_fields’,99);
add_action(‘edit_user_profile_update’, ‘update_extra_profile_fields’,99);but they are fired ONLY on the back-end (as user profiles are editable only in the back-end by default). Is there something similar to use in the frontend on userpro “edit” template?
Thanks, Daniele.
Ciao,
sei poi riuscito a far si che uno possa far eseguire del codice prima/dopo il salvataggio del profilo?
Se ci sei riuscito mi indicheresti dove mettere mano al codice?grazie 1000
Matteo
You must be logged in to reply to this topic.