Update current logged in user

Updating a currently logged in WordPress user through a form or register as new if the user is not currently logged in.

This article explains how to setup a custom form where a logged in user can edit their user data, and where (optionally) logged out users can register a new account. If you are just looking for a way to register new users please read the Registration form article.

Updating current logged in user

Let's assume you have a single form where you want your users to be able to edit their data, and (optionally) if the user is logged out, you want them to be able to register a new account.

To do this, first edit your form and navigate to Form Settings > Register & Login. From the Actions option choose Update current logged in user. You should now see all settings that relate to updating a logged in user (as shown in the image below).

Now whenever a logged in user submits the form their data would be updated. And when a logged out user tries to submits the form a new account would be created instead.

Leave the "User role" setting empty

Updating a currently logged in user or register a new one if logged out via a custom WordPress form.
Updating a currently logged in user or register a new one if logged out via a custom WordPress form.

Last updated