Skip to content

How Rollbacks Work

Understanding how WP Rollback works behind the scenes helps you use it more effectively and troubleshoot any issues that might arise.

The Rollback Process

WP Rollback follows a carefully orchestrated process to ensure safe and reliable rollbacks:

1. Version Detection

  • Scans the WordPress.org repository for available versions of free plugins and themes
  • For Pro users, also queries Plugin Vault for available premium plugin and theme versions
  • Checks local backup archives for versions preserved on this site
  • Checks compatibility with your WordPress version
  • Verifies the selected version exists and is downloadable

2. Safety Checks

  • Validates current plugin/theme integrity
  • Checks file permissions
  • Ensures sufficient disk space
  • Verifies no critical conflicts exist

3. Version Preservation

  • Before any rollback or update, WP Rollback creates a local zip archive of the current version
  • Archives are stored in wp-content/uploads/wp-rollback/ and appear as "Local" versions in the version list
  • Maintains file structure and permissions

4. Download Process

  • Downloads the selected version from WordPress.org
  • Verifies download integrity
  • Extracts files to temporary location

5. Replacement

  • Safely replaces current files with rollback version
  • Preserves configuration and data files
  • Maintains proper file permissions

6. Cleanup

  • Removes temporary files
  • Clears relevant caches
  • Updates WordPress about the version change

Safety Features

Premium Asset Protection

WP Rollback Pro provides two ways to roll back premium plugins and themes:

  1. Plugin Vault — The primary source for premium rollbacks. Plugin Vault is a shared, community-contributed library of verified plugin and theme ZIPs available to all Pro users. Because versions are sourced from the Vault, you do not need to have WP Rollback installed before an update to roll back a premium asset.

  2. Local Archives — WP Rollback also automatically creates a local backup of the current version before every update, stored in wp-content/uploads/wp-rollback/. These appear as "Local" versions in the rollback UI and are useful for restoring the exact version your site was running.

Note: Neither source includes database backups — only plugin and theme files are preserved.

Integrity Checks

WP Rollback verifies the integrity of both the current installation and the rollback version before proceeding.

Permission Validation

The plugin checks that it has the necessary permissions to modify files before starting the rollback process.

Conflict Detection

Built-in checks help identify potential conflicts that might occur during the rollback process.

What Gets Rolled Back

Plugin Rollbacks

  • Core plugin files
  • Plugin version number
  • Function definitions and classes
  • Admin interfaces and settings pages

Theme Rollbacks

  • Theme template files
  • Stylesheet files
  • Theme functions
  • Theme customization options

What Doesn't Get Rolled Back

  • Plugin/theme settings and configurations
  • User data and content
  • Database entries (unless specifically created by the rolled-back version)
  • Custom modifications outside the plugin/theme directory

Version Sources

Each version in the rollback UI is labeled with a badge indicating where it comes from.

WordPress.org Repository (Repo)

The source for all free, open-source plugins and themes:

  • Complete version history
  • Verified checksums
  • Compatibility information
  • Release notes

Plugin Vault (Vault) — Pro Only

A shared library of premium plugin and theme versions, available exclusively to WP Rollback Pro users. See the full Plugin Vault documentation for details on coverage, verification, and legal requirements.

  • ZIPs contributed by the WP Rollback Pro community and verified for integrity before distribution
  • Covers premium plugins and themes from virtually any source — Envato, Kadence Pro, Astra Pro, GeneratePress Pro, Divi, Gravity Forms, WooCommerce, and more
  • No prior installation of WP Rollback is required to access Vault versions
  • Versions appear with a Vault badge in the rollback UI
  • A valid license for the plugin or theme is required to use Vault versions

Local Backups (Local)

Versions automatically archived from this specific site:

  • Created before every plugin or theme update
  • Stored in wp-content/uploads/wp-rollback/
  • Represent the exact version your site was running at the time of the backup
  • Versions appear with a Local badge in the rollback UI

Rollback Limitations

Version Availability

  • Free version: Rollbacks are limited to versions available in the WordPress.org repository. If a version was removed by its author, it will not appear.
  • Pro version: In addition to WordPress.org, Pro users have access to Plugin Vault versions and locally archived versions, significantly expanding available rollback options for premium plugins and themes.

File Permissions

The web server must have write permissions to the plugin/theme directories.

Disk Space

Sufficient disk space is required for temporary files during the rollback process.

WordPress Core

WP Rollback does not support WordPress core rollbacks due to complexity and security concerns.

Technical Implementation

REST API

WP Rollback uses WordPress REST API endpoints for:

  • Fetching version information
  • Processing rollback requests
  • Managing rollback steps
  • Reporting status and progress

Hook System

The plugin integrates with WordPress hooks for:

  • Adding rollback links to admin pages
  • Registering menu items
  • Handling upgrade processes
  • Managing asset loading

Database Operations

Minimal database operations are performed:

  • Storing rollback metadata
  • Logging rollback activity (Pro version)
  • Caching version information

Best Practices

Before Rolling Back

  1. Create a full site backup
  2. Test on a staging site first
  3. Review version release notes
  4. Check for known compatibility issues

After Rolling Back

  1. Test functionality thoroughly
  2. Monitor for any issues
  3. Consider holding the current version
  4. Document the rollback reason

Next Steps

Released under the GPL-2.0+ License.