-
Hi,
I am using your plugin with mostly the Woocommerce fields as fields for registration (such as billing_first_name, billing_last_name) etc. This words perfectly fine. However, in the WordPress admin panel, when I click on the tab Users, I don’t see the names of the registered users. This is (ofcourse) because wordpress uses different meta-fields for (for example) the first name and last name.
My question is thus, is it possible to “synchronize” some of the WooCommerce fields with other fields, on the moment that the registration is succesful? So, for example, when a person is registering and fills in the form. Then clicks on submit. After all the fields are validated succesfully validated, the value of billing_first_name is also put in first_name and then saved. Is this possible? Maybe with a hook?
I am using wordpress 3.7.
plugin version 1.0.55There’s a hook that runs after profile is updated
do_action(‘userpro_profile_update’, $form, $user_id);
For example, by hooking into it, you can get any submitted field from $form and apply it to another user meta.. 🙂 You get it? It’s like that
I can get the first name submitted by $form[‘first_name’] and make update_user_meta(xxx, ‘billing_first_name’, $form[‘first_name’]
That hook runs after PROFILE IS UPDATED always even when new user sign up.
Hey buddy, i’ve written a post here-
http://shoobm.wordpress.com/2014/04/30/sync-wordpress-and-woocommerce-user-profile/Check it out!
You must be logged in to reply to this topic.