Getting started with Magic Links
Magic Links enables people to edit an entry they submitted without logging in, through a secure link that expires.
Note: On a GravityView + Extensions (Legacy) license, Magic Links is a separate plugin. About the “GravityView + Extensions (Legacy)” license shows how to install it.
If the separate Magic Links plugin is still installed on your site, Moving from separate extensions to GravityView Pro explains how to remove it.
Turning Magic Links on or off #
Magic Links is built into GravityView Pro, so there is nothing to install. To turn it off or back on:
- Go to Plugins and click Features in the GravityView Pro row.
- Click Turn off or Turn on in the Magic Links row.

While the separate Magic Links plugin is active, it runs instead of the built-in copy.
Setting up Magic Links on a View #
- Edit your View.
- In the Settings box, click the Magic Links tab.
- Turn on Enable Magic Links.
- Under Email Field, choose the field that holds the submitter’s email address. A link then works only while its address matches the one saved in the entry, or is in Allowed Emails.
- If someone else needs to edit every entry in the View, add their address to Allowed Emails. Separate addresses with commas or new lines, and use
*@example.comto allow every address at a domain. - Under Link Expiration, choose how long a link works after it’s created. The default is 15 minutes, and the longest choice is 12 hours. A change applies to new links only.
- Under Edit Window, choose how long after an entry is submitted it can be edited through a link. The default is 2 days. Choose a longer time or No time limit if people need to edit older entries.
- Click Update to save the View.

Allow Entry Deletion and One-Time Access are off by default. Allow Entry Deletion lets someone with a link delete the entry, as described in Allowing users to delete entries when using a Magic Link. One-Time Access ends a link once it has been used to save an edit, so each edit needs a new link.
With Email Field set to Don’t validate by email field, the address in a link doesn’t have to match the entry or Allowed Emails. Changing the entry’s address or Allowed Emails then doesn’t stop a link that was already sent. Only addresses in Allowed Emails can request a link from the View.
Magic links and the Edit Window settings #
A View has an Edit Window setting on the Magic Links tab and an Edit Window section on the Edit Entry tab. A magic link works only while both of them allow it:
- Edit Window on the Magic Links tab is the one in step 7. It counts from when the entry was submitted and covers links for editing and for deleting. Once it has passed, a link shows “Invalid magic link. The link you clicked may have expired.” above the request form.
- The Edit Window section on the Edit Entry tab closes editing for everyone who edits their own entries in the View, people with a magic link included. Once it closes for an entry, visitors no longer see that entry’s Edit Entry link, and a magic link opens “The deadline for editing this entry has passed.” in place of the edit form.
To set the Edit Entry tab’s deadline, see Close editing at a deadline and Setting an editing deadline with Edit Window. Its Also apply to deleting entries setting decides whether delete links stop at the same deadline.
Sending links #
When someone submits the form, Magic Links creates a link for the new entry right away, so the {gv_magic_link} merge tag works in that form’s notifications and confirmation. The entry needs a valid address in the Email Field, or in the form’s first Email field with Don’t validate by email field.
- Each link expires after the View’s Link Expiration, counted from when it was created.
- While a link hasn’t expired, the merge tag reuses it, so a notification sent again repeats the same link.
- After a link expires, the merge tag creates a new one.
- Opening an expired link shows a form where the person can request a new one.
What a link opens
A magic link for editing opens the entry’s Edit Entry screen, on the View or on the page where the View is embedded. It can’t open the original form page. A magic link for deleting an entry removes it as soon as someone opens it, as described in Allowing users to delete entries when using a Magic Link.
In notifications and confirmations
Use the {gv_magic_link} merge tag in your form notifications or confirmations, with your View’s ID in place of 123:
You can edit your entry here: {gv_magic_link view_id=123 text="Edit Entry"}
The {gv_magic_link} merge tag lists its other options.
From the View
- When the View shows an Edit Entry link, logged-out visitors see it too.
- Clicking it opens a form that asks for their email address.
- If the address matches the entry’s Email Field or is in Allowed Emails, Magic Links emails a new link to it with the subject “Your link to edit an entry”. It sends nothing for an entry past the Edit Window on the Magic Links tab.
- The email is sent in the background, so on some servers it takes a few minutes to arrive.

Keeping links private #
- A link stops working after the View’s Link Expiration, and once the Edit Window on the Magic Links tab has passed. A link for editing also stops when the Edit Window on the Edit Entry tab closes.
- With an Email Field selected, a link works only for an address that matches the entry’s address or is in Allowed Emails.
- The request form shows the same message whether or not an address matches, so it doesn’t tell visitors which addresses are on file.
- Pages opened from a magic link tell the browser not to send their address, which contains the link, to other pages or sites.
Magic Links shows the View’s Edit and Delete links to logged-out visitors, so search engines can reach the pages those links open. Keep Magic Links edit and delete pages out of search results has a snippet that asks them not to index those pages.
Stopping a link that was already sent #
Magic Links has no cancel button. Any of these stops a link that was already sent, for example one that went to the wrong address:
- If the entry’s email address is wrong, correct it. With an Email Field selected, a link made for the old address stops right away, unless that address is in Allowed Emails.
- Request a new link from the View’s request form with an address that matches the entry’s Email Field or is in Allowed Emails. Only the newest link for an entry and View works, so the earlier one stops once the new link is created. Sending a notification that contains
{gv_magic_link}again doesn’t cancel an earlier link. - Remove the address, and any
*@rule that covers it, from Allowed Emails, then save the View. With an Email Field selected, its links stop unless it’s also the address saved in the entry. With Don’t validate by email field, removing it doesn’t stop a link that was already sent. - With One-Time Access on, a link stops once it has been used to save an edit.
- Once the Edit Window on the Magic Links tab has passed for the entry, its links stop working. Links for editing also stop when the Edit Window on the Edit Entry tab closes.
- Turning off Enable Magic Links and saving the View stops every link for the View at once. If you turn it back on, links that haven’t expired work again.
Troubleshooting #
Links not working
- Make sure Enable Magic Links is on, and that Email Field is the field that holds the address.
- Check that the entry has a valid email address.
- With the default Edit Window of 2 days on the Magic Links tab, links don’t work for entries submitted more than 2 days ago.
- A link that opens “The deadline for editing this entry has passed.” has reached the deadline set on the Edit Entry tab.
- Use the newest link, since requesting a new one stops the earlier links for that entry.
Links expiring too quickly
Raise Link Expiration in the View settings, up to 12 hours, or add longer choices with a filter, as Magic Links filters shows.
Email not received
- Check your WordPress email settings and the recipient’s spam folder.
- Confirm the email address saved in the entry.
- Wait a few minutes, since the request form sends its email in the background.
- With Don’t validate by email field, the request form sends links only to addresses in Allowed Emails.
- The request form sends nothing for an entry older than the Edit Window on the Magic Links tab.
