🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Elementor Register & Login Actions Setup Guide

Updated 11 min read Elementor Integrations A–Z
On this page
  1. What you need
  2. Install and activate
  3. Field IDs
  4. User Registration
  5. Role
  6. Password rules
  7. After sign-up
  8. E-mail confirmation
  9. E-mail address already registered
  10. Log In
  11. Lost Password
  12. Failed-login limits
  13. Passwords stay out of everything else
  14. Form token and redirects
  15. Forms and Log tabs
  16. How it differs from a separate login or registration widget
  17. For developers
  18. Troubleshooting
  19. Uninstalling

Elementor Register & Login Actions adds three actions to the Elementor Pro Form widget: User Registration, Log In and Lost Password. You build the form exactly as you build any other Elementor form, choose the action under Actions After Submit, and tell the action which field holds the e-mail address, the password and the other details. This guide covers what you need, every setting of the three actions, the site-wide limits, the e-mail confirmation flow and what to check when something does not behave as expected.

What you need

You need Elementor and Elementor Pro, because the Form widget is part of Elementor Pro. The add-on was tested with Elementor Pro 3.33 on Elementor 3.33 and Elementor 4.3, on WordPress 6.6 to 7.1 and PHP 7.4 to 8.3. It uses the documented Elementor Pro form action API, so it does not replace or patch any Elementor file.

Only administrators (the manage_options capability) can open the add-on’s settings screen. The action settings live in the Elementor editor, so anyone who may edit the page can change them; the safety checks described below still apply to every submission.

Install and activate

  1. Upload the add-on zip on Plugins → Add New → Upload Plugin and activate it.
  2. Open Settings → Register & Login → Settings and activate your GravityExtra license key. Until the license is active, the three actions answer with the form’s error message and do nothing else, and the form token is not added to the page.
  3. Updates arrive in the normal WordPress updates screen while the license is active.

Field IDs

Each action asks for the ID of a field. In the Elementor editor, open a field of the form, go to its Advanced tab and look at ID; you can change it to something readable such as email, password or first_name. The action settings use email and password as defaults, so a form whose fields have those IDs works without further mapping.

User Registration

Add a form with at least an e-mail field. Add a field of the type Password if visitors should choose their own password, and a second Password field if you want them to type it twice. Then choose User Registration under Actions After Submit. A new User Registration section appears with these settings:

  • E-mail field: required. The address must be valid.
  • Username field: optional. When empty, the username is built from the part of the e-mail address before the @ sign, with a number added when it is already taken.
  • Password field and Confirm password field: when the password field is empty in the settings, WordPress e-mails the new user a link to set a password.
  • First name, Last name and Website fields: stored on the WordPress user. The display name becomes first and last name.
  • User meta: one line per field, written as field ID = meta key, for example phone = billing_phone. Keys for roles, capabilities, user levels and login sessions are refused, so a form can never change what a user is allowed to do.
An Elementor Pro sign-up form with first name, last name, email, password, confirm password and phone fields, showing the message
Password rules are checked on the server and shown under the field.

Role

Choose the role new users get. The list only shows roles that are safe for a public form: administrator and any role that can manage options, edit, create, promote or delete users, install or edit plugins and themes, or post unfiltered HTML are left out. The same check runs again on the server every time the form is sent. If a form was saved with an unsafe role (for example because the page was imported from another site, or the setting was changed in the page data), no account is created, the visitor sees a neutral “Sign-up is not available right now” message, and the Log and the Forms tab show the refused role.

To let visitors choose, add a Select or Radio field whose option values are role slugs, enter its ID under Let the visitor choose (field) and pick the allowed roles under Roles the visitor may choose. A value that is not on that list is refused, even if someone changes the form in the browser.

Password rules

Minimum password length (8 by default, 6 at least) and Require letters and numbers are checked on the server. A password may not be the same as the username or the e-mail address, and the confirmation must match. The message appears under the password field, and no account is created until the password is accepted.

After sign-up

  • Log the new user in: the visitor is logged in straight away (unless e-mail confirmation is on).
  • Redirect after sign-up: a page of your site, for example /welcome/. Leave it empty to show the form’s success message.
  • New user e-mail to the site admin: the standard WordPress notice to the site administrator, on by default.

E-mail confirmation

Switch on Confirm e-mail address first to make new accounts prove their address. The account is created but stays pending: it cannot log in through this form, the WordPress login page or any other login form that uses the WordPress login, until the visitor opens the link in the confirmation e-mail. The link works once and for 48 hours by default (Settings tab). You can write your own subject and message with the tags {link}, {first_name}, {site_name} and {hours}, and choose the page the link leads to. When Log the new user in is on, opening the link also logs the user in.

A pending user who resets the password through the WordPress reset e-mail is confirmed at the same time, because that also proves the address. Administrators can confirm an account by hand with the Confirm e-mail link on the Users screen.

E-mail address already registered

By default the form shows a message on the e-mail field (“An account with this e-mail address already exists. Please log in or reset your password.”), which you can change. If you prefer that the form never tells anyone whether an address has an account, choose Show success, e-mail the owner: the visitor sees the normal success message, no account is created, and the owner of the address gets a short e-mail with a link to reset the password.

Log In

Build a form with a field for the username or e-mail address, a Password field and, if you like, an Acceptance field for “Remember me”. Choose Log In under Actions After Submit.

  • Username or e-mail field and Password field: both are accepted, like on the WordPress login page.
  • Remember me: from a checkbox field, always, or never. With remember me the login lasts 14 days; without it, until the browser is closed.
  • Redirect after log in: a page of your site. When empty, the current page reloads so the visitor sees it logged in. Developers can change the address per user with the geerl_login_redirect filter; the result is checked again.
  • Error message: the same message is shown for an unknown user and for a wrong password, so the form never tells a stranger which usernames or addresses exist.
An Elementor Pro log-in form with email or username, password and remember me, showing the message
One message for an unknown user and for a wrong password.

Logins through the form run the normal WordPress login, so security and activity-log plugins that hook into it see these logins too. Two-factor plugins that need an extra login screen of their own are not shown inside the form; use the WordPress login page for accounts that need them.

Lost Password

A form with one field for the username or e-mail address and the Lost Password action asks WordPress to send its own password reset e-mail. The visitor then sets a new password on the standard WordPress reset page. The form gives the same answer whether or not the account exists, and the number of reset e-mails per address and visitor is limited, so the form cannot be used to flood someone’s inbox.

Failed-login limits

Open Settings → Register & Login → Settings to set the limits for the whole site:

  • Failed logins per username: 5 by default, counted per visitor IP address and username.
  • Failed logins per IP address: 30 by default, all usernames together, so one visitor cannot try many accounts.
  • Time window: 15 minutes by default. A blocked visitor can try again after this time. A successful login clears the counter for that username.
  • Reset e-mails per address (3) and Sign-ups per IP address (10 per hour).
The Settings tab of Register & Login Actions: license key, failed-login limits per username and per IP address, time window, reset e-mail and sign-up limits, confirmation link validity, allowed redirect hosts and visitor IP header
Site-wide limits, redirect hosts and the visitor IP header.

Each attempt is counted in the database before the password is checked, with one conditional update that only succeeds while the counter is below the limit. Many requests sent at the same moment therefore cannot try more passwords than the limit allows. Only a hash of the IP address and username is stored, never the values themselves, and old counters are removed once a day.

Visitor IP header: leave it on None unless your site is behind a proxy or CDN that sets one of the listed headers. Otherwise a visitor could fake an address and get around the limits.

Passwords stay out of everything else

As soon as Elementor has checked the fields and before any action after submit runs, the add-on takes every Password field (and the fields you mapped as password or confirmation) out of the submission. The Email action, the Webhook action, Collect Submissions, other add-ons and Elementor’s own hooks never see them, and a field tag for the password in an e-mail stays empty. The password goes straight to WordPress, which stores only a hash. The add-on never writes a password to its log or anywhere else.

When a registration or login is refused (for example a duplicate address, a weak password or a refused role), Elementor answers with the error at once and the form’s other actions do not run, so a failed sign-up is not e-mailed or stored.

Form token and redirects

The Elementor Pro form does not send a security token of its own, so the add-on adds one to every form that uses its actions and checks that the request comes from your site. The token is refreshed when the visitor starts typing, so pages served from a cache keep working. Redirect addresses must be a page of your site or a host you list under Other allowed redirect hosts; anything else is ignored.

Forms and Log tabs

The Forms tab lists every Elementor form that uses one of the three actions, with its page, the role it gives and the other actions it runs. A form saved with an unsafe role is marked as refused there.

The Forms tab of Register & Login Actions listing the sign-up, log-in and lost password forms with their actions, roles and other actions, and one form flagged with a refused role
Every Elementor form that uses the actions, with the role it gives.

The Log tab keeps the latest 100 events: sign-ups, logins, blocked attempts, refused roles, reset requests and confirmations, with the time, the form name and the user ID when there is one. It never contains passwords, usernames, e-mail addresses or other field values.

How it differs from a separate login or registration widget

Many sites add a dedicated login or registration widget next to their forms. That works, but it is a second form system with its own styling, its own fields and none of the actions you already set up on your Elementor forms. Elementor Register & Login Actions takes the other road: it adds three actions to the Elementor Pro Form widget you already use.

  • One form builder. The sign-up form is a normal Elementor Pro form, so it keeps your global styles, multi-step layout, conditional fields, reCAPTCHA or honeypot field and every other action after submit (Email, Collect Submissions, Webhook, your CRM add-ons).
  • Any field can become user data. Map form fields to the account and to user meta, instead of a fixed set of fields.
  • Safety is decided on the server. Roles that can manage the site or other users are refused when the form is sent, whatever was saved in the editor, and passwords are removed before any other action sees the submission.
  • Built-in limits. Failed logins are limited per visitor and per username with an atomic counter, so even many requests at the same moment cannot try more passwords than you allow.

For developers

  • geerl_user_registered (action): runs after a form created a user, with the user ID, the role and the Elementor form record (password fields already removed). Use it to give a membership level or start a welcome sequence.
  • geerl_register_user_data (filter): change first name, last name, display name, nickname, description or website before the user is created. The role, password, username and e-mail address cannot be changed here.
  • geerl_login_redirect (filter): the address after a form login, for example per role.
  • geerl_forbidden_caps (filter): add capabilities that make a role unsafe for public sign-up. The built-in list cannot be shortened.
  • geerl_client_ip (filter): the visitor address used by the limits.

Troubleshooting

  • “This page has expired. Please reload it and try again.”: the form token was missing or too old, or the request came from another site. Check that no optimisation plugin removes the add-on’s small front-end script, and that the page is not cached for more than a day without the script.
  • “Sign-up is not available right now.”: the role saved in the form is not safe for a public form. Pick another role in the User Registration section; the Forms tab shows which form is affected.
  • The form says the login details are not correct, but they are: the account may still wait for e-mail confirmation (the message then asks to confirm the address), or the visitor may be blocked by the limits after earlier failed tries. The Log tab shows which.
  • No confirmation or reset e-mail arrives: these are sent by WordPress with wp_mail. Check your SMTP setup and the spam folder.
  • Nothing happens and editors see “the GravityExtra licence is not active”: activate the license key on the Settings tab.

Uninstalling

Deleting the add-on removes its settings, its log, the counter table, the confirmation data on user accounts and its scheduled clean-up. User accounts and your Elementor pages are kept. Remove the actions from your forms first, so the forms do not keep a setting for an action that is no longer there.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr