WP Insert User Element

Inserts an WP User.

When to use?

When you want to insert an user in your WordPress site from an another account linking option other than 'installation'.

How to use:

  1. Enter a Name for your recently created user.
  2. Retrieve the user name from Init Amazon user Element like ${user.name}
  3. Retrieve the email from Init Amazon user Element like ${user.email}
  4. If you want to use a different role than what is associated with your WP Installation, check the property Use custom role an enter a role in Role property
  5. Or just select an role from available WP Roles.
  6. If you want to add user_meta_input, fill out WP User meta input.

After the element was executed, you'll get either WP_User or WP_Error object as result of wp_insert_user( array|object|WP_User $userdata )

On Success or On User Exists

Elements in On Success will be executed in case the user was inserted successfully.

Elements in On User Exists will be executed in case the user already exists.

You'll get the recently created 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 inserted successfully.

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