Skip to main content

YOOaccess Documentation

Set who can edit what, track every change, and undo mistakes.

Overview

YOOaccess helps you manage a YOOtheme Pro site when other people edit its pages. It has three modules:

  • Lock lets you choose which WordPress roles can use the builder.
  • Audit records layout activity, including who saved a layout and when.
  • Guard saves layout snapshots that you can restore later.

You can use each module on its own or turn on all three.

Requirements

RequirementMinimum
WordPress6.1 or newer
PHP8.0 or newer
YOOtheme ProInstalled and active

If YOOtheme Pro is not active, YOOaccess shows a notice and its modules do not run. No other plugins are required.

Setup

Install YOOaccess

  1. Download the YOOaccess ZIP from your YOOfoundry account.
  2. In WordPress, go to Plugins > Add New > Upload Plugin.
  3. Choose the ZIP, click Install Now, then activate the plugin.

On a new installation, Guard and Audit are enabled. Lock is off until you enable it, so installing YOOaccess does not change anyone’s builder access.

First configuration

  1. Go to YOOaccess > Settings > License. Enter your key and click Save License Key. A valid key enables updates.
  2. Open YOOaccess in the WordPress sidebar. This is the dashboard, where you turn modules on or off.
  3. If you want to control builder access, turn on Lock. Then go straight to YOOaccess > Lock, tick Access Builder for each role that should use the builder, and click Save Settings.
  4. Open YOOaccess > Guard. Select the pages you want to protect and click Snapshot Selected to save their current layouts. Process up to 100 pages per batch.
  5. Review the retention limits under YOOaccess > Settings > Guard and Audit.

When you first enable Lock, non-administrator roles start without builder access. Set their permissions before asking editors to continue working. Users with the WordPress manage_options capability remain unrestricted.

YOOaccess management screens require manage_options, which administrators normally have. Giving someone builder access does not give them access to these screens.

Features

Turn modules on or off

Open YOOaccess in the WordPress sidebar. Each module has an on/off switch. Changes save immediately.

Turning a module off stops it running and hides its management screen. It keeps the module’s stored data. Turning Lock off also stops its permission checks, but leaves any capabilities it granted to roles in place.

Safe Mode and uninstall settings

Safe Mode stops all three modules from running. Use it when checking whether YOOaccess is involved in a conflict. The dashboard and License settings remain available.

While Safe Mode is on, Lock does not enforce permissions, Audit does not record events, and Guard is unavailable. Capabilities previously granted to roles remain in place. License and update checks continue.

Remove Data on Uninstall controls whether deleting the plugin also deletes its snapshots, audit events and settings. It is off by default. See the FAQ below for the difference between deactivating and deleting YOOaccess.

Lock: builder access

Go to YOOaccess > Lock. Each WordPress role has one setting: Access Builder.

  • Ticked: the role can use the builder and save layouts, subject to its normal WordPress editing permissions.
  • Unticked: the role cannot open the builder or save changes to a builder layout.

Click Save Settings after changing the checkboxes. Custom roles added by other plugins appear in the same list.

Administrators always have access. Any user with manage_options also bypasses Lock, regardless of the checkbox shown for their role.

What Access Builder controls

Lock checks permissions on the server. For users without Access Builder, it blocks builder entry and layout changes. On YOOtheme Pro 5, it also blocks writes to site templates, the element library and theme settings.

Changes that leave the layout untouched, such as a title change in Quick Edit, can still be saved if WordPress allows the user to edit that page.

Lock also blocks the WordPress Customizer for restricted users. It does not control WordPress’s separate permissions for trashing or deleting posts and pages.

Builder access includes theme permissions

YOOtheme requires the WordPress edit_theme_options capability to open the builder. Granting Access Builder also grants this capability to the role.

That can give the role access to other Appearance screens, including menus and widgets. YOOaccess does not separately restrict those screens.

When you revoke Access Builder, YOOaccess restores edit_theme_options to the state it recorded before granting access.

Reset to Defaults

Reset to Defaults removes builder access from non-administrator roles, restores the theme permissions YOOaccess changed, and keeps administrator access. Users with manage_options still bypass Lock.

Upgrading from older Lock settings

Older versions had separate Edit Layout, Edit Content, Delete Elements and Publish Layouts permissions. These have been retired. Existing Access Builder permissions are kept during the upgrade.

The current version has no text-only builder mode. A role either has builder access or it does not.

Audit: layout activity

Go to YOOaccess > Audit to see recorded layout activity.

EventWhat it means
Layout SavedA layout was added or changed.
Layout RemovedA layout was removed from the content.
Layout TrashedA post or page containing a layout was moved to the trash.
Layout RestoredA post or page containing a layout was restored from the trash.

Each event records the user, affected content, event type, time and client IP address. Autosaves and revisions are ignored.

Layout Saved and Layout Removed can cover any post type. Trash and restore events cover WordPress posts and pages.

Audit records that a layout changed, not which text, settings or elements changed inside it. It does not log unchanged layout saves, changes blocked by Lock, or changes to YOOtheme templates and theme settings.

A Guard restore that changes a layout appears as Layout Saved. The separate Layout Restored event refers to restoring content from the WordPress trash.

Search and filter events

Use the event dropdown, search field and date fields to narrow the feed. Search matches the content name and event description. Click Filter to apply your choices or Reset to clear them.

The event dropdown lists Layout Saved, Layout Trashed and Layout Restored. Layout Removed events are available in the unfiltered feed or through search.

Date filters use UTC day boundaries. The feed shows up to 50 events per page, with the newest first.

Export or clear the log

Export CSV downloads the current page of filtered results, up to 50 events. It does not export the entire log at once. Use the filters and paging controls to export additional results.

Purge All permanently deletes the entire audit log after confirmation, including events outside your current filters.

Audit retention

By default, Audit keeps events for up to 90 days, with a maximum of 1,000 events. Change these limits under YOOaccess > Settings > Audit.

Cleanup runs when a new event is recorded, at most once an hour. On an inactive site, old events may remain until another event triggers cleanup.

Guard: layout snapshots

Go to YOOaccess > Guard to save and restore builder layouts.

Take a snapshot before making changes you may want to undo. Guard does not snapshot every save or run scheduled backups. Its automatic snapshot happens immediately before a restore.

What Guard includes

The page list includes WordPress posts and pages containing a YOOtheme layout in these statuses:

  • Published
  • Draft
  • Pending review
  • Private

Scheduled content, custom post types, YOOtheme templates and theme settings are not included in this list.

A snapshot stores the builder layout JSON. It does not back up media files or the rest of your site. Keep using your normal site backups.

Take a snapshot

  • Click Backup beside a page to snapshot its current layout.
  • For several pages, select their checkboxes and click Snapshot Selected.
  • For more than 100 pages, use separate batches and deselect pages you have already processed.

If a layout matches its latest snapshot, Guard reports Skipped, content unchanged. The saved snapshot already contains that version.

Bulk snapshots are labelled Bulk snapshot. Snapshots taken with the Backup button have no label. There is no field for adding your own labels.

Restore a snapshot

  1. Click History beside the page. It shows up to 50 of that page’s most recent snapshots.
  2. Find the version you want and click Restore.
  3. Confirm the restore, then check the page.

Before restoring, Guard saves the current layout as a Pre-restore backup, unless that version is already the latest snapshot. If this safety copy cannot be saved, the restore stops. A page with no current layout can still be restored.

If WordPress reports that another user is editing the page, Guard asks you to wait until they are finished.

The restore replaces the builder layout and preserves content outside it. It also clears the WordPress page template setting, matching YOOtheme’s own save behavior. A snapshot can only be restored to the post or page it came from.

Export or delete a snapshot

In History, Export downloads the snapshot’s raw layout JSON. Use it for archiving or manual work. YOOaccess has no import button.

Delete permanently removes that snapshot after confirmation.

Guard retention

By default, Guard keeps the latest 20 snapshots per page, with no age limit. Change these limits under YOOaccess > Settings > Guard.

Cleanup runs for a page when a new snapshot is stored, and after a restore. Skipped, unchanged snapshots do not trigger cleanup. The snapshot used for a restore is protected during that restore’s cleanup.

Setting the age limit to 0 removes the age limit only. The snapshot count limit still applies.

Settings

License and updates

Go to YOOaccess > Settings > License. Enter your license key and click Save License Key to save and check it.

The Status badge shows Active, Grace Period, Invalid, No Key Entered or Not Yet Checked.

Re-check saved key checks the key already in use and clears the update cache. Save a newly entered key before using this button. Then visit Dashboard > Updates to check for a release.

YOOaccess also schedules a daily license check. If the licensing server cannot be reached, it keeps the previous license result. A Grace Period can appear if a previously valid key is rejected within seven days of its last successful check. Update downloads still depend on the licensing server accepting the key.

Your license covers updates and support. An expired or missing key does not stop Lock, Audit or Guard from working.

Sharing a bundle key

A bundle key covers all paid YOOfoundry plugins. YOOaccess checks its own saved key first. If that field is empty, it can use a key saved by YOOcalendar, YOOcast or YOOspeed, in that order.

If the License tab says it is using another plugin’s key, leave the field empty to keep sharing it. A license for one plugin covers that plugin only.

A key set through YOOFOUNDRY_LICENSE_KEY in wp-config.php takes priority over saved keys.

Settings reference

The License tab is always available. Guard and Audit tabs appear while their modules are enabled and Safe Mode is off. Builder permissions are set on YOOaccess > Lock.

SettingWhat it doesDefault
GuardTurns layout snapshots on or off from the dashboard.On
AuditTurns layout activity logging on or off from the dashboard.On
LockTurns builder permission checks on or off from the dashboard.Off
Safe ModeStops all three modules from running.Off
Remove Data on UninstallDeletes stored snapshots, audit events and plugin settings when you delete YOOaccess.Off
Access BuilderAllows a role to use the builder and save layouts. Also grants WordPress theme permissions.On for Administrator; off for other roles on a new installation
Max Snapshots Per PageSets how many recent snapshots Guard keeps for each page.20
Max Snapshot Age (Days)Sets a snapshot age limit. Use 0 for no age limit.0
Max Event Age (Days)Sets how long Audit keeps events.90
Max Total EventsSets the maximum number of audit events kept.1,000

Optional wp-config.php settings

These settings are optional. Add only the ones you need to wp-config.php, above the line that says to stop editing.

Set a shared license key

define('YOOFOUNDRY_LICENSE_KEY', 'your-license-key');

This key overrides keys saved in the plugins’ settings. Use a bundle key if it needs to cover every paid YOOfoundry plugin.

Disable automatic update checks

define('YOOACCESS_DISABLE_UPDATE_CHECK', true);

This stops YOOaccess’s update requests. The daily license validation still runs when a key is available. Install future versions manually while this setting is enabled.

Use forwarded IP addresses

define('YOOACCESS_TRUST_PROXY', true);

By default, Audit uses the address reported by your server through REMOTE_ADDR. This setting makes it check HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR first. Enable it only if your proxy supplies trusted headers and prevents visitors from overriding them.

FAQ

Can I let someone edit text without changing the layout?

Not inside the builder. Access Builder is one permission: the role can use the builder or it cannot. For trusted editors who need builder access, take a Guard snapshot before they begin.

An editor cannot open the builder. What should I check?

Open YOOaccess > Lock, tick Access Builder for their role, and click Save Settings. On a new installation, other roles start without access when you enable Lock.

They also need the normal WordPress permission to edit the content they are opening.

Why does an unticked role still have builder access?

Check that Lock is enabled and Safe Mode is off. Users with manage_options bypass Lock. A user with more than one role can also receive builder access through another role.

What does “Layout changes not saved” mean?

The user tried to change a builder layout without Access Builder permission. YOOaccess kept the stored layout. Other changes in that save, such as the title, may still have been saved.

If the user should edit layouts, grant Access Builder to their role. Otherwise, keep their edits outside the builder.

Why are modules or settings tabs missing?

Check the YOOaccess dashboard. Disabled modules have no management screen. Safe Mode hides all three module screens and leaves only the License tab in Settings.

If you see a notice that YOOtheme Pro must be installed and active, activate YOOtheme Pro before using the modules.

Why is a page missing from Guard?

Guard lists posts and pages with a YOOtheme layout in published, draft, pending or private status. Scheduled content, custom post types and pages with no builder layout are not listed.

If Backup reports No YOOtheme layout found on this page, there is no layout in its content to capture.

Why does Backup say “Skipped, content unchanged”?

The current layout matches its latest snapshot. That version is already saved, so Guard avoids storing another copy.

Why are old snapshots or audit events still there?

Guard cleans up a page’s snapshots when it stores a new snapshot or completes a restore. An unchanged snapshot that is skipped does not trigger cleanup. An age limit of 0 means there is no age limit.

Audit cleanup runs when a new event is recorded, at most once an hour. Neither module runs scheduled retention cleanup.

Can I import an exported snapshot?

YOOaccess has no import feature. Export downloads raw layout JSON for archiving or manual use. Restores from History are limited to the original post or page.

Why is no plugin update appearing?

Open YOOaccess > Settings > License and check the key and Status badge. Click Re-check saved key, then visit Dashboard > Updates.

An expired, invalid or missing key prevents licensed update downloads. Update checks are also disabled if YOOACCESS_DISABLE_UPDATE_CHECK is set to true.

What happens if my license expires?

YOOaccess keeps working. Your permissions, audit log and snapshots stay in place. Renew your license to receive updates and support again.

What happens if I deactivate or delete YOOaccess?

Deactivating stops the modules and their permission checks. Stored data and granted role capabilities remain.

Deleting removes YOOaccess’s role capabilities and restores the theme permissions it changed. With Remove Data on Uninstall off, snapshots, audit events and saved settings remain. If you reinstall, review and reassign builder access.

With Remove Data on Uninstall on, deleting YOOaccess also removes its snapshot and event tables and plugin settings, including its saved license key. Your WordPress pages and their layouts remain.

On multisite, automatic uninstall cleanup is limited to the current site’s data and roles; it does not run across the entire network.

What data does YOOaccess store or send?

Snapshots and audit events are stored in two tables in your WordPress database. Audit events include the user, affected content, time and client IP address.

License checks send your license key, site URL and product name to yoofoundry.com. Update checks send the product name and installed plugin, PHP and WordPress versions, with the license key in a request header.

YOOaccess does not send your layouts or audit events. Disabling update checks does not disable license validation.