diff --git a/src/MerchantCapture/OrderListPaymentColumn.php b/src/MerchantCapture/OrderListPaymentColumn.php index 6447336b..d74a9173 100644 --- a/src/MerchantCapture/OrderListPaymentColumn.php +++ b/src/MerchantCapture/OrderListPaymentColumn.php @@ -4,6 +4,7 @@ namespace Mollie\WooCommerce\MerchantCapture; +use Automattic\WooCommerce\Admin\Overrides\Order; use Mollie\WooCommerce\MerchantCapture\UI\StatusRenderer; class OrderListPaymentColumn @@ -12,6 +13,12 @@ public function __construct() { add_filter('manage_edit-shop_order_columns', [$this, 'renderColumn']); add_action('manage_shop_order_posts_custom_column', [$this, 'renderColumnValue'], 10, 2); + + # HPOS hooks + add_filter('woocommerce_shop_order_list_table_columns', [$this, 'renderColumn']); + add_action('woocommerce_shop_order_list_table_custom_column', function (string $column, Order $order) { + $this->renderColumnValue($column, $order->get_id()); + }, 10, 2); } public function renderColumn(array $columns): array