Pratiks Options Revisions

Description

Pratiks Options Revisions gives you the safety of post revisions for your site settings and options.

Whenever WordPress core or any plugin updates an option in wp_options, Pratiks Options Revisions captures the previous and new values, who made the change, and the timestamp. When an update breaks layout, email delivery, or checkout, you can view a unified visual diff and roll back the setting with a single click.

Features:
* Automatic snapshot capture on option changes (update_option, add_option, delete_option).
* Built-in denylist excluding transient caches, cron schedules, and authentication secrets.
* Visual side-by-side and unified diffs rendered with WordPress core diffing tools.
* Smart formatting for serialized arrays and objects into readable JSON diffs.
* 1-click rollback with nonces, capability checks, and recursion loop guards.
* Full WP-CLI command suite (wp pratiks-options-revisions).
* WordPress 6.9+ Abilities API integration for AI agents and MCP workflows.
* Automated daily pruning keeping the database lean.
* GDPR compliant personal data exporter and eraser.

Screenshots

Installation

  1. Upload the plugin files to the /wp-content/plugins/pratiks-options-revisions directory, or install through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Access revision logs and rollback options under Tools > Options Revisions.

FAQ

Does this track every option?

It tracks options that carry meaningful site configuration while automatically ignoring high-churn caches (transients, cron) and authentication keys. You can further customize tracked options using the pratiks_options_revisions_should_ignore filter.

Can I roll back via command line?

Yes, run wp pratiks-options-revisions rollback <id> using WP-CLI.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Pratiks Options Revisions” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release on WordPress.org.
  • Snapshot capture on settings updates, additions, and deletions.
  • Visual diffs with JSON formatting for serialized options.
  • One-click rollback with nonces, capability checks, and recursion guards.
  • WP-CLI and WordPress 6.9+ Abilities API integration.
  • Automated daily cleanup cron task.