WP Update User Meta Element

Updates metadata of a WP User.

When to use?

When you want to update metadata of a user in your WordPress site.

How to use:

  1. Enter a Name of your recently updated user status variable.
  2. Retrieve the User ID from Init current auth user Element like ${user.ID} or any other method as you wish.
  3. Fill out the metadata of the user you want to update WP User meta input.

After the element was executed, you'll get either WP_User or false boolean value as result of get_user_by($field, $value)

On Success

Elements in On Success will be executed in case the user was found and some metadata were provided.

You'll get the recently updated WP_User in form of (${status.user}) object and be able to access its properties like this:

On Failure

Elements in On Failure will be executed, in case the user was not found.

You'll get an error message in form of (${status.error}) object.

Exception

Exception will occur if no metadata was provided.