Frontend Create User
Frontend Create User lets the roles you choose create an account for someone else from a page on your site. It adds a Create User (VT) Elementor widget that shows your Voxel registration form, and the staff member stays logged in as themselves the whole time.
Added in 1.9.7.1
Update Voxel Toolkit to 1.9.7.1 or later to use this function.
Overview
Voxel's registration form signs in whoever it just registered, so a staff member who uses it to add a customer ends up logged in as that customer. This function shows the same form and sends the submission somewhere else: the account is created, the staff member's session is left alone, and the new user is emailed a link to sign in.
The form is Voxel's own. Roles, fields, conditions, and uploads come from Voxel → Membership → Roles, so there is no second form to keep in sync.
Key Features
- A Create User (VT) widget you can place on any page
- The same form as public registration, with all of the Login widget's style settings
- Staff never set or see a password; the new user gets a sign-in link by email
- Required registration fields can be left blank, so staff can fill in only what they know
- You choose which roles can create users and which account types they can create
- The sign-in email is a Voxel app event you can edit
Setup Instructions
Step 1: Enable the Function
- Navigate to Voxel Toolkit → Functions in your WordPress admin
- Find Frontend Create User in the list
- Toggle the switch to enable it
Step 2: Choose Who Can Use It
Open the function's settings and review Who can create users and Account types they can create. See Settings below. By default only administrators can create users.
Step 3: Add the Widget
- Edit a page in Elementor
- Search the widget panel for Create User (VT)
- Drag it onto the page and save
The widget only appears for logged-in users in an allowed role. Everyone else, including logged-out visitors, sees nothing where it sits.
Step 4: Review the Email
The sign-in email is an app event, edited where your other Voxel emails are: Voxel → App Events → Voxel Toolkit → Account created for you. See The sign-in email.
Settings
All options below are in the Frontend Create User function settings under Voxel Toolkit → Functions.
| Setting | Description | Default |
|---|---|---|
| Who can create users | The WordPress roles that see the widget and can create accounts with it. If you save with nothing checked, it goes back to Administrator. | Administrator |
| Account types they can create | The Voxel roles staff can pick on the form. Only roles that are open for registration are listed. Leave all unchecked to allow every one of them. | None checked (all allowed) |
| Make registration fields optional | Required fields can be left blank on this form. The email is always needed. Public registration is not affected. | On |
Keep the list of roles short
Anyone in a role checked under Who can create users can create accounts. Administrator, editor, author, contributor, and other roles with admin-level capabilities can never be assigned to a new account, the same as public registration, and no setting changes that.
Widget Settings
The widget extends Voxel's Login widget, so it has the same Content and Style controls and they work the same way. Two things differ:
- Register title defaults to "Create a new user"
- A new Account created notice section in the Style tab styles the confirmation message shown after an account is created
Account created notice
| Control | Purpose |
|---|---|
| Typography | Font settings for the notice |
| Text color | Color of the notice text |
| Link color | Color of the "View profile" link |
| Background color | Background of the notice |
| Border | Border type, width, and color |
| Border radius | Corner rounding |
| Padding | Space inside the notice |
| Bottom spacing | Space between the notice and the form |
What Staff See
- They open the page with the widget while logged in. The form opens on the registration screen.
- If more than one account type is available, they choose one under Account type.
- They enter the new user's email and any other details they have, then select Create account.
- The page reloads with a notice: "Account created for (name). They have been sent a link to sign in." A View profile link opens the new user's profile.
A few things are different from public registration:
- No password field. The account is given a random password that nobody sees.
- Username can be blank. With Make registration fields optional on, a blank username is created from the email address. If Voxel is set to generate usernames from the email, it does that regardless.
- No social login and no reCAPTCHA. The form is for logged-in staff only.
The new account counts as a normal registration, so Voxel's Membership: New user registered app event fires for it too.
The sign-in email
The new user is emailed through the Voxel Toolkit: Account created for you app event. Edit it under Voxel → App Events → Voxel Toolkit.
| Notification | Default |
|---|---|
| Notify the new user (email) | On. Subject: "Your account on @site(title)" |
| Notify the new user (in-app) | Off, because they haven't signed in yet |
Dynamic tags available in the template:
| Tag | Description |
|---|---|
@account(link) | The new user's sign-in link |
@user(...) | The new user's details |
Keep @account(link) in the message. It is how the new user first signs in.
The link depends on whether Temporary Login is enabled:
- With Temporary Login enabled, it is a one-click sign-in link that is valid for 7 days. It shows in the Temp Logins list with the note "Frontend Create User sign-in link".
- Without it, it is a standard WordPress link to set a password.
Sign-in links are not copied to other recipients
With Admin Notifications on, its extra recipients are not sent a copy of this event, because the email holds a working sign-in link.
Troubleshooting
The Widget Doesn't Show
The widget is hidden from anyone who isn't in a role checked under Who can create users. Check the function's settings, and confirm Frontend Create User is enabled under Voxel Toolkit → Functions.
"No account types are available"
Administrators see this message in place of the form when no role is left to offer. Check that at least one role is open for registration under Voxel → Membership → Roles, and that Account types they can create doesn't exclude all of them.
"That account type is not available."
The role selected on the form isn't open for registration, or isn't checked under Account types they can create. Reload the page to get the current list.
"You do not have permission to create users."
Your role isn't checked under Who can create users. Ask an administrator to add it in the function's settings.
The New User Didn't Get an Email
Check Voxel → App Events → Voxel Toolkit → Account created for you and confirm the email notification is enabled. If it is turned off, the new user has to use the password reset option on your login page to get in. This event uses the same delivery path as every other Voxel email, so if nothing arrives, test another Voxel notification.
Requirements
- Voxel theme, with at least one role open for registration under Voxel → Membership → Roles
- Elementor, for the widget
- Email delivery configured on the site
- Temporary Login is optional, and makes the sign-in link one-click