WP Manifestindependent plugin directory
manifest / ecommerce / woocommerce-orders-payment-method-filter

WooCommerce Orders Payment Method Filter

Add an admin-only payment method filter to the WooCommerce orders list with HPOS and legacy order storage support.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/amirrezashf/woocommerce-orders-payment-method-filter/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Add a payment-method dropdown to the WooCommerce orders list for administrators.

Features

  • Filter orders by payment gateway
  • Restricted to users with manage_options
  • Supports WooCommerce HPOS
  • Supports legacy order storage
  • Uses native WooCommerce order-query parameters
  • Shows gateway title and ID
  • No settings page
  • Single-file plugin

Requirements

  • PHP 7.4+
  • WordPress 6.0+
  • WooCommerce

Installation

  1. Download the repository as ZIP.
  2. Install it from Plugins → Add New Plugin → Upload Plugin.
  3. Activate the plugin.
  4. Open WooCommerce → Orders and use the payment-method filter.

Hooks

Change the required capability:

add_filter( 'wc_opmf_required_capability', static function () {
    return 'manage_woocommerce';
} );

Modify gateways shown in the dropdown:

add_filter( 'wc_opmf_payment_gateways', static function ( $gateways ) {
    return $gateways;
} );

Compatibility

The plugin supports both WooCommerce storage modes. HPOS filtering uses the native payment_method order-query argument; legacy storage filters the _payment_method order meta.

License

GPL-3.0

Author

Amirreza Shayesteh Far


فیلتر سفارش‌های ووکامرس بر اساس روش پرداخت

افزودن فیلتر روش پرداخت به لیست سفارش‌های ووکامرس برای مدیران سایت.

قابلیت‌ها

  • فیلتر سفارش بر اساس درگاه پرداخت
  • دسترسی فقط برای manage_options
  • سازگار با HPOS
  • سازگار با ساختار قدیمی سفارش‌ها
  • استفاده از Query استاندارد ووکامرس
  • نمایش نام و شناسه درگاه
  • بدون صفحه تنظیمات
  • افزونه تک‌فایلی

پیش‌نیازها

  • PHP 7.4+
  • WordPress 6.0+
  • WooCommerce

نصب

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

هوک‌ها

تغییر سطح دسترسی:

add_filter( 'wc_opmf_required_capability', static function () {
    return 'manage_woocommerce';
} );

تغییر لیست درگاه‌ها:

add_filter( 'wc_opmf_payment_gateways', static function ( $gateways ) {
    return $gateways;
} );

سازگاری

در HPOS از پارامتر استاندارد payment_method استفاده می‌شود. در ساختار قدیمی، فیلتر روی متای _payment_method اعمال می‌شود.

مجوز

GPL-3.0

نویسنده

Amirreza Shayesteh Far