Woocommerce modification of the filter by registered customers [closed]

The admin panel has a standard filter for registered customers:
enter image description here

This filter is located here:

/wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-orders.php

At the moment, it searches the wp_postmeta table comparing the post_id (order number) with the _current_user key in the meta_key

enter image description here

However, according to the project, it turned out that some of the old orders and new ones are now written to another table wp_woocommerce_orders and the filter does not see them.
enter image description here

Can you please tell me what hook is there to connect to this filter to fix the database query? And maybe someone will be able to tell me how to write the query to the database, taking into account what I need to look for in two tables now

Source: Ask PHP

LEAVE A COMMENT