A persistent audit log that tracks every change to your WordPress, PHP, and MySQL versions, plus plugin and theme updates.

Version History Audit Log

This is a PRO feature. Unlock real-time monitoring, environment indicators, version history, and more. Upgrade to PRO →

Version History records supported changes when the plugin detects them. An entry’s timestamp is the observation time, which can be later than the software update.

What It Tracks

The audit log records changes to:

  • WordPress core version updates
  • PHP version changes (e.g., when your host upgrades PHP)
  • MySQL version changes
  • Plugin updates
  • Theme updates

Plugin and theme updates are recorded only when WordPress runs them as a bulk update: the Update Now links on the Plugins and Themes screens, Dashboard > Updates, and WP-CLI. Background auto-updates of plugins and themes, and the single-item update links WordPress uses when JavaScript is off, are not recorded. A plugin or theme update also needs that item's earlier version on record, which Version Info saves during the item's previous update, so the first update of each plugin or theme after activation, or after any WordPress, PHP or MySQL change, only saves the starting version.

How It Works

Version Info stores a snapshot of known version numbers. It compares the WordPress, PHP and MySQL versions on each WP-Admin request, and checks plugins and themes right after WordPress finishes a bulk update of them. When a change is detected:

  1. The old and new versions are recorded in the audit log.
  2. The known versions snapshot is updated.
  3. The version_info_version_changed action hook fires, enabling other plugins or custom code to respond to the change.

Viewing the Audit Log

Navigate to Settings > Version Info > Version History to view the audit log. Entries are listed newest first in a table with the following columns:

Column Description
Component What changed: WordPress, PHP, MySQL, or a plugin or theme shown as Plugin:{Plugin Name} or Theme:{Theme Name}
Previous Version The previous version number
New Version The new version number
Detected When the change was detected, in site-local time

The audit log retains up to 50 entries. When the limit is reached, the oldest entries are automatically removed to keep the log manageable.

Storage

Version history data is stored in the WordPress options table using two option keys:

  • version_info_history - The array of audit log entries
  • version_info_known_versions - The current known version snapshot for comparison

No custom database tables are created. This keeps the plugin lightweight and easy to uninstall cleanly.

Developer Hook

The version_info_version_changed action fires whenever a version change is detected, passing an array of changes:

add_action( 'version_info_version_changed', 'handle_version_change' );

function handle_version_change( $changes ) {
    foreach ( $changes as $change ) {
        error_log( sprintf(
            'Version change detected: %s updated from %s to %s',
            $change['version_type'],
            $change['old_version'],
            $change['new_version']
        ) );
    }
}

See version_info_version_changed on the Hooks & Filters page for when it fires and the full shape of each change.

This hook is also used internally by the Email Alerts feature to trigger notifications when versions change.

email-alerts.md