woocommerce_shop_order_search_results хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_shop_order_search_results', 'wp_kama_woocommerce_shop_order_search_results_filter', 10, 3 );

/**
 * Function for `woocommerce_shop_order_search_results` filter-hook.
 * 
 * @param  $order_ids     
 * @param  $term          
 * @param  $search_fields 
 *
 * @return 
 */
function wp_kama_woocommerce_shop_order_search_results_filter( $order_ids, $term, $search_fields ){

	// filter...
	return $order_ids;
}
$order_ids
-
$term
-
$search_fields
-

Где вызывается хук

WC_Order_Data_Store_CPT::search_orders()
woocommerce_shop_order_search_results
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 637
return apply_filters( 'woocommerce_shop_order_search_results', $order_ids, $term, $search_fields );

Где используется хук в WooCommerce

woocommerce/includes/tracks/events/class-wc-orders-tracking.php 26
add_filter( 'woocommerce_shop_order_search_results', array( $this, 'track_order_search' ), 10, 3 );