meta fields sync – UserPro Forums https://forum.userproplugin.com/forums/topic/meta-fields-sync/feed/ Sat, 01 Jun 2024 11:54:35 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-20796 <![CDATA[meta fields sync]]> https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-20796 Wed, 12 Feb 2014 09:41:22 +0000 Nazeem 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.55

]]>
https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-20809 <![CDATA[Reply To: meta fields sync]]> https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-20809 Wed, 12 Feb 2014 12:21:42 +0000 admin There’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.

]]>
https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-35570 <![CDATA[Reply To: meta fields sync]]> https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-35570 Wed, 30 Apr 2014 17:29:45 +0000 Shubham Dhamande Hey buddy, i’ve written a post here-
http://shoobm.wordpress.com/2014/04/30/sync-wordpress-and-woocommerce-user-profile/

Check it out!

]]>
https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-35656 <![CDATA[Reply To: meta fields sync]]> https://forum.userproplugin.com/forums/topic/meta-fields-sync/#post-35656 Thu, 01 May 2014 12:36:07 +0000 admin Amazing post! 🙂

]]>