• How do you add customer user meta data on registration? I found the function add_metadata, but I haven’t found where or how the default user_meta_data is added to the database.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    First you need to collect the data. You can output additional form fields at the “register_form” action. Then you need to process the submitted data, including validating and sanitizing the input before using add_user_meta(). This can be done at the “register_new_user” action, where the assigned user ID is passed to your callback.

Viewing 1 replies (of 1 total)
  • The topic ‘Customer User Meta Data on Registration’ is closed to new replies.