Linux 软件免费装
Banner图

Meta Ledger - Track, compare, and restore post meta Changes

开发者 smilingsyntax
更新时间 2026年1月29日 19:47
PHP版本: 8.0 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

restore woocommerce history postmeta post meta

下载

1.0.0 1.0.1

详情介绍:

Meta Ledger automatically tracks all post meta changes for posts, custom post types, and WooCommerce products. It stores a versioned history, allows field-level diffs, and provides a restore option. Designed for developers, high-performance, and WordPress standards. Perfect for tracking product prices, custom fields, metadata changes, and any post meta modifications with complete audit trails. Key Features

安装:

  1. Upload the meta-ledger folder to /wp-content/plugins/
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. The database table will be created automatically on activation
  4. Navigate to any post, page, or product to see the Meta Ledger meta box

屏幕截图:

  • History tab displaying complete version history with source tracking
  • Source popover showing file location, line number, and stack trace
  • Restore confirmation dialog
  • Settings page for configuring post types, retention, and ignored keys

升级注意事项:

1.0.1 Settings link on plugins page, restore fix, and side-by-side diff view for long values in history. 1.0.0 Initial release. Activate to start tracking all post meta changes automatically.

常见问题:

Which post types are tracked?

By default, Meta Ledger tracks posts, pages, and WooCommerce products. You can add more post types in Settings → Meta Ledger or using the meta_ledger_tracked_post_types filter.

How do I ignore certain meta keys?

Navigate to Settings → Meta Ledger and add meta keys to ignore (one per line). Supports wildcards (e.g., _edit_*). You can also use the meta_ledger_ignored_meta_keys filter.

Will this slow down my site?

Meta Ledger is designed for performance. It uses indexed database queries, batches changes at shutdown, and skips high-frequency meta keys like _edit_lock by default. The performance impact is minimal.

How do I restore a previous value?

Click on the "History" tab in the Meta Ledger meta box on any post, then click the restore button next to any version. The restore action is also tracked in history.

Can I track changes made from code?

Yes! Meta Ledger tracks all changes made through WordPress meta functions (update_post_meta, add_post_meta, delete_post_meta), regardless of whether they come from code, plugins, themes, or the Meta Ledger UI.

How do I see where a change came from?

Each history entry includes a source button. Click it to see the file path, line number, function name, and full stack trace for code changes. Changes made from Meta Ledger UI are marked as "Meta Ledger UI".

Can I use this with WooCommerce?

Yes! Meta Ledger works seamlessly with WooCommerce products and tracks all product meta changes, including prices, stock, and custom fields.

How many versions are kept?

By default, 50 versions per meta key are kept. You can adjust this in Settings → Meta Ledger under "History Entries per Meta Key".

Is there a REST API?

Yes! The plugin provides REST API endpoints at /wp-json/meta-ledger/v1/ for accessing history and restoring versions programmatically.

Are there WP-CLI commands?

Yes! Use wp meta-ledger show, wp meta-ledger restore, and wp meta-ledger cleanup commands for command-line operations.

更新日志:

1.0.1 1.0.0