WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WC_Orders_Tracking::track_order_search() public WC 1.0

Send a track event when on the Order Listing page, and search results are being displayed.

Это метод класса: WC_Orders_Tracking{}

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Orders_Tracking = new WC_Orders_Tracking();
$WC_Orders_Tracking->track_order_search( $order_ids, $term, $search_fields );
$order_ids(массив) (обязательный)
Array of order_ids that are matches for the search.
$term(строка) (обязательный)
The string that was used in the search.
$search_fields(массив) (обязательный)
Fields that were used in the original search.

Код WC_Orders_Tracking::track_order_search() WC 4.5.2

woocommerce/includes/tracks/events/class-wc-orders-tracking.php
<?php
public function track_order_search( $order_ids, $term, $search_fields ) {
	// Since `woocommerce_shop_order_search_results` can run in the front-end context, exit if get_current_screen isn't defined.
	if ( ! function_exists( 'get_current_screen' ) ) {
		return $order_ids;
	}

	$screen = get_current_screen();

	// We only want to record this track when the filter is executed on the order listing page.
	if ( 'edit-shop_order' === $screen->id ) {
		// we are on the order listing page, and query results are being shown.
		WC_Tracks::record_event( 'orders_view_search' );
	}

	return $order_ids;
}