//$customer is https://woocommerce.github.io/code-reference/classes/WC-Customer.html add_filter( "woocommerce_json_search_found_customers", function($results){ foreach($results as $id=>$result) { if($result["type"] == "customer") { $customer = new WC_Customer($result["id"]); if( $customer ) $results[$id]["title"] = $customer->get_id() ." - " . $customer->get_billing_company(); //EDIT } } return $results; },20 );
Search results show company instead of name of customer Print
Created by: Alex Prokaev
Modified on: Tue, 4 May, 2021 at 7:34 AM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.