Updating custom user meta during registration

We can update the meta fields for a logged-in user using {wp_user_id} since they are already authenticated. However, how can I update or add a value to a custom meta field during the registration process?

For instance, there is a select field where the user picks an option. The choice then needs to be saved to their profile, as certain parts of the dashboard have functionality dependent on capturing that selected value.

1 Like

Seems to work for this use case

1 Like

There is a special variable {{live_user_id}} which you can use for the „Update User Meta“ action. When running the „Register User” action as well, this variable takes the ID of the new created user :blush:

2 Likes

Thank you, i have updated my form to use this instead even though {wp_user_id} was working

1 Like