Woocommerce order search by Country

I have a shop. The shop is in 4 languages and we sell in products in 8 different countries across Europe.

In Woocommerce Admin there is a search option in the orders field. I can search by order-id, name, city and it filters the results.
But when I try to search by country, nothing is shown.

I tried to add the billing_country to a filter (see below), but with no effect.

Why can’t I search by Country in the woocommerce admin orders page?

add_filter( 'woocommerce_shop_order_search_fields', 
'woocommerce_shop_order_search_billing_country' );
function woocommerce_shop_order_search_billing_country( $search_fields 
) {
    $search_fields[] = '_billing_country';
   return $search_fields;

Read more here: Woocommerce order search by Country

Leave a Reply

Your email address will not be published. Required fields are marked *