WP Forged

Ask Alder

I’m Alder, WP Forged’s AI assistant. Ask me about our tools or services. Keep private details out of chat.

Forged Vault Docs

Undo, history and permissions for the builder.

Overview

Forged Vault gives the YOOtheme Pro builder a safety net and a lock:

  • Undo, Redo and History in the builder. Step back through your last 50 edits, see the saved copies of the page, and load one.
  • History. A copy of every save of a page, the theme settings, a template or a saved layout, with what each save changed and one-click restore.
  • Lock. Choose which WordPress roles can use the builder, enforced on the server.
  • Audit. A log of who saved, removed, trashed or restored a layout, and when.

Forged Vault was called Forged Access before 2.0.0. It installs over Forged Access as a normal update and keeps its snapshots, audit log, settings and license key.

Requirements

Requirement Version
WordPress 6.1+
PHP 8.0+
YOOtheme Pro 5.0+
Plugin dependencies None

If YOOtheme Pro is not the active theme (or the parent of your child theme), an admin notice reads “Forged Vault requires YOOtheme Pro to be installed and active.” and no module runs. The same happens on PHP below 8.0.

Setup

Installing the Plugin

  1. Download the Forged Vault zip from your WP Forged account.
  2. In wp-admin go to Plugins > Add New > Upload Plugin, choose the zip, install and activate.
  3. Go to WP Forged > Forged Vault > License, paste your key and click Save key.

On activation Forged Vault creates its two database tables and turns on History and Audit. Lock stays off until you turn it on, because turning it on changes who can save builder pages.

First Steps

  1. Open a page in the YOOtheme builder. Undo, Redo and History sit at the top of the sidebar, beside Cancel and Save Layout.
  2. Go to WP Forged > Forged Vault > Dashboard and turn on Lock if you want to choose who can use the builder. Then open the Lock tab, tick Access Builder for each role that should have it, and click Save.
  3. Go to the Settings tab to change how many saves History keeps (20 per page by default) and how long Audit keeps events (90 days by default).

Every Forged Vault screen needs the manage_options capability, so only administrators can reach them. Undo, Redo and History in the builder work for anyone who can edit the page.

Features

Undo, Redo and History in the Builder

Undo, Redo and History sit at the top of the builder sidebar, to the left of YOOtheme’s Cancel and Save Layout.

  • Ctrl+Z undoes. Ctrl+Shift+Z or Ctrl+Y redoes. On a Mac, use Cmd instead of Ctrl.
  • The shortcuts do nothing while you type in a text box or a code editor, or while a dialog is open, so those keep their own undo.
  • The last 50 steps are kept while the builder is open. Each is named after what changed, such as Edited Headline “Welcome”, Added Section, Removed Image or Moved Section. A step that touched several elements reads Changed 3 elements.
  • Undo closes any element settings panel that is open, so the builder never shows settings for an element that is no longer there.
  • Cancel is a step too: Discarded unsaved changes. Undo it to get your edits back.
  • Opening another page, or closing the builder, starts a new history.

History opens a panel with two lists:

  • This Session lists the steps, newest first. Click one to go back to it. Changes shows what that step changed.
  • Saved Copies lists the copies History keeps of the page, with when, who and any note. Changes shows what that save changed, and Load puts the copy in the builder.

Undo, Redo, a click on a step and Load only change what is open in the builder. Nothing is written until you press Save Layout, which is YOOtheme’s own save, with its own permission and collision checks.

Anyone who can edit the page sees its saved copies, by display name.

If a YOOtheme update changes the builder in a way Forged Vault does not recognise, the three buttons stay out of the builder, and it works as before. The browser console then has a line starting [Forged Vault] that says why.

History

WP Forged > Forged Vault > History

History keeps a copy each time one of these is saved:

  • A post’s or page’s YOOtheme layout, in the builder or anywhere else. A save that leaves the layout as it was keeps nothing. Drafts, pending and private pages count. Revisions, autosaves and WordPress’s own drafts do not.
  • The YOOtheme theme settings.
  • A template or a saved layout (My Layouts), including when one is deleted.

The first change History sees after it is turned on also keeps the version it replaced, labelled Earlier version, so that change can be undone too.

The screen has three lists: Pages, Theme Settings, and Templates and Saved Layouts. Each row shows how many copies are kept and when the last one was. History on a row opens its copies, with the date, the user, whether it is a Save or a Snapshot, any note, and four actions:

  • Changes compares the copy with the one before it. For a layout it lists the elements added, removed or changed, where they are (such as Section 2 > Headline), and the text before and after, or which settings changed. For theme settings it lists each setting that changed.
  • Restore brings that version back. It asks first.
  • Export downloads the copy as a JSON file named after the page and the date.
  • Delete removes that copy. There is no undo.

Saves and Snapshots

  • Saves are the copies History keeps on every save. It keeps the latest 20 of each page, of the theme settings, and of each template and saved layout, and deletes older ones as new ones arrive. Change the number in Settings.
  • Snapshots are kept until you delete them. Snapshot on a page row keeps its current layout. Tick several pages and click Snapshot selected for up to 100 at a time. A snapshot that would match the page’s last snapshot exactly is skipped, with Skipped, content unchanged.

Restoring

A page. Forged Vault first keeps the current layout as a snapshot labelled Pre-restore backup. If that copy cannot be saved, nothing is changed. If someone else has the page open in the WordPress editor, the restore is refused and names them, because their next save would overwrite it. Only the layout part of the page is replaced. The restore counts as a save, so History keeps it, labelled Restored from and the date, and Audit logs it.

Theme settings. The current settings are kept first as a snapshot labelled Before restore. YOOtheme builds its stylesheet when it opens, so open YOOtheme once after a restore. Until then the site keeps its current style.

A template or saved layout. If it is still in YOOtheme, the current version is kept first. A deleted template or saved layout stays listed under Deleted, and Restore brings it back.

Builder Pages Stay in YOOtheme

A page built in YOOtheme keeps its layout in the page’s content. Opening it in the block editor through YOOtheme’s Back to Block Editor link and saving it rewrites that content and drops the layout. With Builder pages stay in YOOtheme on, which is the default, only YOOtheme’s own save can change a builder page’s layout:

  • On a builder page, YOOtheme’s Back to Block Editor and Back to Classic Editor links are hidden, and the block editor shows a note saying why.
  • A save through the REST API, which the block editor uses, that would change or remove the layout is refused with a message saying so. Any other save keeps the stored layout and goes through for everything else, and the next screen says the layout was kept.
  • The title, excerpt, featured image, categories, custom fields and SEO fields are not page content, so they stay editable everywhere. Posts written in the block editor have no layout and are never affected.
  • It applies to everyone, administrators included. Restoring a copy, restoring a WordPress revision and WP-CLI still change layouts.
  • To use the WordPress editor on one page, press Use the block editor (or Use the classic editor) in the note on that page and confirm. The layout is kept as a snapshot first, then removed, and the page reopens in the WordPress editor. Restore on that snapshot brings the YOOtheme layout back. Only people who can use the builder see the button.

Turn it off under Settings > History. It needs YOOtheme Pro 5.

Lock

WP Forged > Forged Vault > Lock

Lock decides which WordPress roles can use the YOOtheme builder. The tab lists every role, custom roles included, with one checkbox: Access Builder. Save stores the boxes, and Reset to defaults takes Access Builder from every role but Administrator.

A role with Access Builder can open the builder and save what it does there: page layouts, templates, the element and style libraries, and theme settings. A role without it gets none of that, enforced on the server:

  • The builder. Every request to YOOtheme’s builder is refused, from opening it to saving pages, templates, libraries, theme settings and the stylesheet, importing settings, widgets and images. YOOtheme’s menu item, the Edit with YOOtheme link on the Posts and Pages lists, and the builder links in the admin bar are hidden from that user. The only requests left open are the ones YOOtheme serves to every visitor: newsletter sign-ups and cached images.
  • Templates and libraries. Any change such a role makes to templates or the element and style libraries is put back, however it arrives.
  • Page layouts. A save from anywhere else that would change a page’s layout is reverted before it reaches the database. The user sees Layout changes not saved, and anything else in that save, such as the title, goes through. Over the REST API the save is refused with You do not have permission to save layout changes. A save that leaves the layout as it was, such as a title fix or a Quick Edit, goes through.
  • The Customizer. Appearance > Customize is refused too.

Administrators, and any role with the WordPress manage_options capability, always have access whatever their box says.

Access Builder and edit_theme_options

YOOtheme checks the WordPress edit_theme_options capability before it opens the builder, so ticking Access Builder also grants it. That capability also opens Appearance > Menus and Widgets. Forged Vault remembers whether the role had it before, and unticking Access Builder puts it back as it was.

Audit

WP Forged > Forged Vault > Audit

Audit logs four events:

Event Logged when
Layout saved A layout is saved and differs from the one stored before, or a new post arrives with one.
Layout removed A post that had a layout is saved without one.
Layout trashed A post or page with a layout is moved to the trash.
Layout restored A post or page with a layout is restored from the trash.

Each event records the user, the page, a one-line description, the IP address and the time. A save that left the layout as it was is not logged.

Filter the log by event type, search it, or pick a date range, then Filter. Reset clears the filters. The log shows 50 events a page. Export CSV downloads the events on the page you are looking at. Purge all deletes every event, after asking.

Audit deletes events older than 90 days, and the oldest once there are more than 1,000. It does this at most once an hour, when a new event is logged. Change both in Settings.

Dashboard, Safe Mode and Data Removal

WP Forged > Forged Vault > Dashboard

The Dashboard turns Lock, History and Audit on and off. Each switch saves at once. Turning a module off stops it, and keeps its data.

  • Safe Mode stops every module, so you can rule Forged Vault out of a conflict without deactivating it. A banner says so while it is on.
  • Remove Data on Uninstall is off by default. Turned on, deleting Forged Vault also deletes its copies, audit log and settings.

Settings

Settings Reference

Setting Where What it does Default
Lock Dashboard Turns on builder permissions. Off
History Dashboard Keeps copies, and Undo, Redo and History in the builder. On
Audit Dashboard Logs layout changes. On
Safe Mode Dashboard Stops every module. Off
Remove Data on Uninstall Dashboard Deleting the plugin also deletes its data. Off
Builder pages stay in YOOtheme Settings > History Only YOOtheme can change a builder page’s layout. On
Saves kept Settings > History Saves kept for each page, the theme settings, and each template and saved layout. 1 to 100. 20
Max copy age (days) Settings > History Deletes saves and snapshots older than this, checked whenever a new copy is kept. 0 keeps them for ever. 0
Max event age (days) Settings > Audit Deletes older events. 1 to 365. 90
Max events Settings > Audit Deletes the oldest events past this number. 100 to 10,000. 1,000
Access Builder Lock, per role Lets the role use the builder, and grants edit_theme_options. Administrator only
License key License Turns on automatic updates and support. Empty

License

WP Forged > Forged Vault > License shows your key and what app.wpforged.com last said about it. Check again asks again and clears the update cache, so a new release shows under Dashboard > Updates.

You don’t have to paste the key here. A key in YOOFOUNDRY_LICENSE_KEY in wp-config.php wins over anything saved, and a key saved on WP Forged > Settings or in another WP Forged plugin is used when Forged Vault has none of its own.

Optional wp-config.php Constants

Constant What it does
YOOFOUNDRY_LICENSE_KEY A license key for every WP Forged plugin on the site.
YOOACCESS_TRUST_PROXY Set to true to read the visitor’s IP address from proxy headers in Audit. Only when the proxy or CDN in front of the site is yours.
YOOACCESS_DISABLE_UPDATE_CHECK Set to true to stop update checks. Updates then have to be installed by hand.

FAQ

What happens if my license lapses? Forged Vault keeps working. The license covers updates and support, not features. Nothing switches off, and your copies and log stay in place.

Does Undo save anything? No. Undo, Redo, clicking a step and Load only change what is open in the builder. Save Layout saves it.

Is every save kept? Yes, up to the number in Saves kept. A save that changed nothing keeps nothing. Snapshots are kept until you delete them.

Does Forged Vault back up my whole site? No. It keeps builder layouts, the YOOtheme theme settings, templates and saved layouts. It does not keep images, other content or the database. Keep your normal backups.

Can I see exactly what changed? Yes. Changes on a saved copy, or on a step in the builder, lists the elements added, removed or edited with the text before and after. Audit shows who saved, and when.

Does Lock stop an administrator? No. Administrators, and any role with manage_options, always have access. Lock is for the other roles.

An editor could open the builder before and now can’t. Why? Lock is on and their role has no Access Builder. Tick it on the Lock tab and click Save.

Can a role edit text but not the layout? No. Access Builder is one switch: a role uses the builder or it does not. Undo and History cover a trusted editor’s mistakes.

Why isn’t my page listed in History? History lists posts and pages whose content holds a YOOtheme layout. Scheduled content and other post types are not listed.

Why don’t I see Undo, Redo and History in the builder? Check that History is on, on the Dashboard, and that Safe Mode is off. If they are, open the browser console in the builder and look for a line starting [Forged Vault]. Send it to us and we’ll look.

What happens when I deactivate or delete the plugin? Deactivating stops the modules and keeps everything. Deleting takes Access Builder back from every role and puts edit_theme_options back as it was. With Remove Data on Uninstall on, it also deletes the copies, the audit log and the settings.

What does Forged Vault send to app.wpforged.com? License checks send your key, your site address and the product name. Update checks send the plugin, PHP and WordPress versions and the product name, with the key in a request header. Your layouts and log never leave the site.