WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-payment-method-change-log

WooCommerce Payment Method Change Log

Track WooCommerce order payment method changes with timestamps and actor details in an HPOS-compatible admin metabox.

by Amirreza Shayesteh Far · github.com/amirrezashf/woocommerce-payment-method-change-log · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/amirrezashf/woocommerce-payment-method-change-log/archive/refs/heads/main.zip

Track WooCommerce order payment method changes and display the history in the admin order screen.

Features

  • Logs previous and new payment methods
  • Records date, time, and actor
  • Detects admin, checkout, gateway, and integration changes
  • Supports classic orders and HPOS
  • Keeps up to 100 entries per order
  • Stores data in order metadata
  • Single-file plugin

Installation

  1. Download the repository as ZIP.
  2. Upload it from Plugins → Add New Plugin → Upload Plugin.
  3. Activate the plugin.
  4. Open a WooCommerce order and check the Payment Method Changes metabox.

Data Storage

_wc_pmcl_last_payment_method_id
_wc_pmcl_last_payment_method_title
_wc_pmcl_payment_method_changes

No custom database table is created.

Filters

add_filter( 'wc_pmcl_log_limit', static function () {
    return 50;
} );
add_filter( 'wc_pmcl_change_entry', static function ( $entry, $order ) {
    return $entry;
}, 10, 2 );

License

GPL-3.0

Author

Amirreza Shayesteh Far


تاریخچه تغییر روش پرداخت ووکامرس

ثبت تغییرات روش پرداخت سفارش و نمایش تاریخچه در صفحه مدیریت سفارش.

قابلیت‌ها

  • ثبت روش پرداخت قبلی و جدید
  • ثبت تاریخ، ساعت و عامل تغییر
  • شناسایی تغییرات مدیریت، Checkout، درگاه و Integration
  • سازگار با ساختار کلاسیک و HPOS
  • نگهداری حداکثر ۱۰۰ رکورد برای هر سفارش
  • ذخیره در Order Meta
  • ساختار تک‌فایلی

نصب

  1. Repository را به‌صورت ZIP دانلود کنید.
  2. از مسیر افزونه‌ها ← افزودن افزونه تازه ← بارگذاری افزونه نصب کنید.
  3. افزونه را فعال کنید.
  4. یک سفارش را باز کنید و متاباکس تغییرات روش پرداخت را بررسی کنید.

ذخیره‌سازی

_wc_pmcl_last_payment_method_id
_wc_pmcl_last_payment_method_title
_wc_pmcl_payment_method_changes

جدول اختصاصی ایجاد نمی‌شود.

مجوز

GPL-3.0

نویسنده

Amirreza Shayesteh Far