Documentation

UserLock documentation

Everything you need to set up Techholds UserLock for Elementor: lock levels that restrict content editing, Elementor user role and per-user rules, snapshots, the change log and every Pro feature, with examples.

On this page

Overview

Techholds UserLock for Elementor decides how much of Elementor each person on your site can use. You set a lock level per WordPress role, and you can override it for individual users. Restricted users keep a simple editor where they change text, images and links, while layout, styling and site-wide design stay protected.

UserLock checks changes in two places:

  • In the editor, as it happens. Locked panels and tools are hidden, and if someone tries a locked action, a message appears straight away.
  • On the server, when the page is saved. Allowed changes are kept and anything locked is restored from the stored version, even if the editor was bypassed.
Who is it for? Freelancers and agencies who hand Elementor sites to clients, site owners who give staff access to update content, and anyone tired of “I broke my site” support requests.

Free and Pro at a glance

AreaFree FREEPro PRO
Lock levelsFull access, Content only, View onlyAdds Text only
Role rulesAll rolesAll roles
User rulesUnlimitedUnlimited
Per-page rules—Yes
Instant lock messages and save guardYesYes
Code removed from text fieldsYesYes
Site-wide design protectionYesYes
SnapshotsYes, you choose how many to keepAdds compare, labels and favorite versions
Change logYes, you choose how long to keep itAdds filters, CSV export and email alerts
Widget allowlist, element locks—Yes
Theme Builder, popups, WooCommerce templates—Yes
Custom messages and branding—Yes
Import and export presets—Yes

Requirements

SoftwareVersion
WordPress6.2 or newer, tested up to 7.1
PHP8.0 or newer
Elementor3.5 or newer, tested up to 4.3.5
Elementor ProOptional. Needed only if you use Pro widgets or the Theme Builder

UserLock declares Elementor as a required plugin. If Elementor is missing, inactive or older than 3.5, UserLock stays idle and shows a notice with an Install, Activate or Update Elementor button. Your rules are kept and start working again as soon as Elementor is ready.

Installation

Install the free plugin FREE

  1. In your dashboard go to Plugins → Add New.
  2. Search for Techholds UserLock, then click Install Now and Activate.
  3. A new UserLock menu appears in the dashboard sidebar.

To install manually, upload the techholds-userlock folder to /wp-content/plugins/ and activate it on the Plugins screen.

Install UserLock Pro PRO

  1. After purchase, download the Pro zip from the link in your purchase email or from your account.
  2. Go to Plugins → Add New → Upload Plugin, choose the zip and activate it. Keep the free plugin active; Pro adds to it.
  3. Open UserLock → Permissions → License and activate your licence key.
Tip: Activating Pro does not change any existing rules. Everything you set up in the free version carries over.

Quick start

A typical client handoff takes about two minutes:

  1. Go to UserLock → Permissions → Roles.
  2. Set Editor (or the role your client uses) to Content only and click Save role rules.
  3. Optional: on the Users tab, give a single person a stricter or looser rule.
  4. Log in as that user (or ask them to) and open a page with Elementor. Only content fields are available.
  5. Hand the site over. Every save is checked, and a snapshot of the previous version is kept.

Example: you have users A, B and C, all with the Editor role. You want only B restricted. Leave the Editor role on Full access and add a user rule for B set to Content only.

Lock levels

Every rule uses one of these levels:

LevelWhat the user can doPlan
Full accessNormal Elementor editing. Nothing is locked.Free
Content onlyEdit text, images, links, media and galleries. No style, layout, adding, deleting, moving or duplicating.Free
Text onlyEdit text only. Images and links are locked as well.Pro
View onlyCannot open the Elementor editor at all. The page can still be viewed on the site.Free

What counts as content

With Content only, these field types stay editable: text, textarea, rich text (WYSIWYG), URL, media and gallery. For Elementor V4 elements, the text, link and image properties stay editable.

Page-level fields: the page title and excerpt can be changed, and with Content only the featured image too. Publishing, updating and saving as draft always work.

What is always locked

  • Style and Advanced tabs, including spacing, motion effects and custom CSS
  • Adding, deleting, moving, duplicating, pasting and importing elements
  • Repeater item add, remove and reorder (for example list items or slides)
  • Dynamic tags and global colours or fonts
  • Page settings such as layout, template and custom CSS
  • Site Settings, global classes and variables
  • V4 classes, HTML tag, attributes, CSS ID, display and interactions
Note: Administrators (anyone who can manage options, including super admins on multisite) are always exempt and can never be locked.

How rules are decided

For each user and page, UserLock works out a single result in this order:

  1. Administrator? Full access, always.
  2. Per-page rule for this user or role on this page PRO.
  3. User rule for this person. It overrides the role rule, in either direction.
  4. Role rule. If the user has several roles, the strictest one wins.
  5. No rule found: Full access.
Never silently unlocked: if a rule uses a level that is no longer available (for example Text only after Pro is deactivated), UserLock treats it as View only rather than unlocking the user.

The Users tab shows the role rule, user rule and final result for every user, so you can check the outcome at a glance.

Role rules (Elementor user roles)

Go to UserLock → Permissions → Roles. Every role on your site is listed, including roles added by other plugins (for example Shop manager). Choose a level for each and click Save role rules.

  • The Administrator role is shown as exempt and cannot be changed.
  • Roles without access to Elementor are unaffected, but you can still set a rule in case access is added later.
  • Changes apply on the next page load. Users already in the editor see them after reloading.

User rules

Use a user rule when one person needs a different level from the rest of their role.

Add a user rule

  1. Go to UserLock → Permissions → Users.
  2. Under Set a rule for one user, choose the user and a level.
  3. Click Save user rule.

You can also set it from the user’s profile screen (Users → Edit), in the Elementor lock field. The profile shows the current result. The Users list in WordPress gets an Elementor lock column with each person’s result.

Remove a user rule

Click Remove rule next to the user in the Who can do what table. Their role rule applies again.

How many user rules can I add?

As many as you need. There is no limit on user rules in the free or Pro version.

Per-page rules PRO

Lock or unlock specific pages for a role or user. Common uses:

  • Let a client edit the Blog and Team pages, but make the Home page View only.
  • Keep landing pages fully locked while allowing content edits elsewhere.
  • Give a contributor Full access to a single page they own.

Set per-page rules in UserLock → Permissions → Pages, or from the UserLock box on the edit screen of a page, post, product or Elementor template. Click Edit next to a rule to change its level. A per-page rule is checked before user and role rules.

What restricted users see

When a restricted user opens Elementor, the editor is simplified:

  • Only the Content tab is shown for each widget, and only editable fields are visible.
  • The Elements panel, add buttons, navigator, Site Settings and global menus are hidden.
  • Add, duplicate and delete handles are removed from the canvas.
  • For V4 elements, the Style and Interactions tabs and locked settings fields are hidden.

Instant lock messages

If the user tries a locked action, such as dragging a section, pasting a style or using a keyboard shortcut to delete, the action is stopped and a short message appears at once: “This section is locked by your site administrator.” Nothing they have already typed is lost.

If they select an element that has no editable fields (for example a spacer or divider), the panel shows “Nothing in this element can be edited. It is locked by your site administrator.”

UserLock Pro: rewrite every message restricted users see, add your logo and a support link, and show a short help note in the editor with your own button labels. Find these under UserLock → Permissions → Pro settings.

What happens on save

Each save from a restricted user is merged with the stored page on the server:

  • Allowed changes (text, images, links) are saved.
  • Locked changes are replaced by the stored values.
  • Structure (which elements exist and their order) always comes from the stored page.

If any locked change was dropped, the user sees “Saved. N design change(s) on locked sections were not applied.” and the editor reloads to show exactly what was saved.

Example: a client edits a heading and also, through a browser extension, changes its colour. On save, the new heading text is kept, the colour is restored, and the client sees the message.

Autosaves and drafts

Autosaves and drafts are checked the same way as a normal save.

Code and styling in text fields

Restricted users cannot add code or inline styling through text fields. This stops stray CSS appearing on the page and prevents design changes sneaking in through the text editor.

  • <style> and <script> blocks are removed together with their contents.
  • Unsafe HTML is stripped. Normal formatting such as bold, italic, links and lists is kept.
  • New style and class attributes are removed. Ones that were already there stay.

While typing, the user sees “Code and styling can’t be added in text fields. It will be removed when you save.” After saving, the message confirms the code was removed.

View only

Users with View only cannot open the Elementor editor. If they follow a link to it, they see the lock message instead. The Edit with Elementor buttons in the admin bar, the page list and the edit screen are hidden for them.

Use View only for people who should review pages but never change them, or as a temporary freeze during a launch.

Site-wide design protection

Restricted users cannot change anything that affects the whole site:

  • Site Settings (global colours, fonts, layout, theme style)
  • Global classes and variables (Elementor V4)
  • Kit and element defaults

Changes are blocked in the editor and on the server, including direct REST requests to Elementor’s endpoints.

Elementor V4 elements

UserLock supports classic widgets and the new V4 (atomic) elements side by side. For V4 elements:

  • Text, link and image properties stay editable with Content only. With Text only PRO, only text is.
  • Styles, classes, HTML tag, attributes, CSS ID, display conditions and interactions are locked.
  • The Style and Interactions tabs are hidden, and the panel opens on the General tab.

Snapshots

Every time a page is saved in Elementor, by anyone, UserLock keeps a snapshot of the previous version. Identical versions are not stored twice.

Restore a snapshot

  1. Go to UserLock → Permissions → Snapshots.
  2. Find the page by name or URL. Each row shows when it was saved and who triggered it.
  3. Click Restore and confirm.

Before restoring, the current version is saved as a new snapshot, so a restore can always be undone. Elementor’s CSS and page caches are cleared automatically (WP Rocket too, if active).

Delete snapshots

Use Delete on a row to remove one snapshot, or Delete all snapshots to clear them for every page. Deleting cannot be undone.

Limits

By default every snapshot is kept. To keep fewer, set Snapshots per page under UserLock → Permissions → Settings; older snapshots are then removed automatically.

UserLock Pro: a side-by-side compare view, labels, and a favorite version that is never removed by automatic cleanup.

Change log

UserLock → Permissions → Change log lists saves by restricted users: when, who, which page, and what happened, such as how many changes were saved or blocked and whether code was removed.

  • By default every entry is kept. To remove old entries automatically, set Keep the change log for under UserLock → Permissions → Settings.
  • Click Delete all log entries to clear the log.
UserLock Pro: filters by user, page, date and blocked changes, CSV export, and email alerts for every save or only when a locked change is blocked.

Widget allowlist and element locks PRO

Widget allowlist

Choose exactly which widgets a role or user can edit. For example, allow Heading, Text Editor and Image, and lock everything else, including forms and sliders.

  1. Go to UserLock → Permissions → Widgets.
  2. Choose a role or user and click Choose widgets.
  3. Tick the widgets they may edit (use Select all or Select none to speed things up) and save.

Every other widget is fully locked for them, with a message if they click it. The list shows every widget on your site, including Elementor Pro, third-party and V4 widgets.

Lock a single element

Right-click any section, container or widget in the editor and choose Lock for restricted users. That element, and everything inside it, becomes read-only for them, even on pages where they otherwise have Content only. Administrators see a small Locked badge on it.

To undo, right-click it again and choose Unlock for restricted users.

Theme Builder, popups and WooCommerce PRO

Elementor Pro templates (headers, footers, single and archive templates, popups and WooCommerce product templates) follow the same rules as pages by default.

To keep templates completely out of reach, go to UserLock → Permissions → Pro settings → Templates and tick Restricted users cannot open Elementor templates. A per-page rule on a template always wins.

Import and export presets PRO

In UserLock → Permissions → Import / export, click Download preset to save every rule (roles, users, pages and widget lists) and your Pro settings as a JSON file. Import it on another site to give it the same setup in seconds. Agencies use this to roll out one standard setup to every client site.

Users are matched by username, then email, and pages by their slug. Anything that does not exist on the new site is skipped and listed after the import.

Licensing PRO

Licence statusWhat happens
ActiveAll Pro features, updates and support.
ExpiredEvery lock keeps working. Pro settings become read-only and updates stop until you renew.
Deactivated or removedFree features keep working. Pro-only rules fall back safely: Text only becomes View only, so nothing is unlocked by accident.

Manage your licence under UserLock → Permissions → License. You can move a licence to another site by deactivating it first.

Settings and uninstall

UserLock → Permissions → Settings has three options.

  • Snapshots per page: how many earlier versions to keep for each page. 0 (the default) keeps every snapshot.
  • Keep the change log for: how many days of log entries to keep. 0 (the default) keeps every entry.
  • Uninstall: see below.

New limits apply as soon as you save. When Remove all UserLock rules, snapshots and logs when the plugin is deleted is ticked, deleting the plugin removes its options, user rules and database tables. When it is not ticked, everything is kept so you can reinstall later.

Deactivating the plugin never deletes data. While deactivated, no locks apply.

Translations

UserLock is translation-ready with the text domain techholds-userlock. A .pot file is included in the languages folder. Translations from translate.wordpress.org load automatically.

Troubleshooting

A restricted user can still change the design

  • Check the Users tab: the final result must not be Full access.
  • Make sure the user is not an administrator. Administrators are always exempt.
  • Ask the user to reload the editor after you change a rule.

The editor does not load for a user

Their level is probably View only. Change it to Content only if they should edit content.

Changes look reverted after saving

Only locked changes are reverted. Check the Change log to see what was blocked. If something should be editable, raise the user’s level or, with Pro, add the widget to their allowlist.

Old content still shows after a restore

UserLock clears Elementor’s CSS cache and WP Rocket. If you use another caching plugin or a CDN, clear it manually.

UserLock shows an Elementor notice

Elementor is missing, inactive or older than 3.5. Use the button in the notice to fix it.

FAQ

Does UserLock create new roles?

No. It works with your existing roles and users.

Does it slow down the site?

No. UserLock only runs in the Elementor editor and on save. Nothing extra loads for visitors.

Does it work on multisite?

Yes. Rules are set per site. Super admins are always exempt.

Can users still edit with the WordPress block editor?

UserLock controls Elementor. Pages built with Elementor are protected; to stop a user editing posts at all, use their WordPress role capabilities.

Need finer control?

UserLock Pro adds per-page rules, the Text only level, widget allowlists, snapshot compare and email alerts.

CONTACT US

Tell us about your project

TALK TO AN EXPERT

Tell us what you are working on