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

WC_Orders_Tracking::track_orders_view() public WC 1.0

Send a Tracks event when the Orders page is viewed.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$WC_Orders_Tracking = new WC_Orders_Tracking();
$WC_Orders_Tracking->track_orders_view();

Код WC_Orders_Tracking::track_orders_view() WC 4.5.2

woocommerce/includes/tracks/events/class-wc-orders-tracking.php
<?php
public function track_orders_view() {
	if ( isset( $_GET['post_type'] ) && 'shop_order' === wp_unslash( $_GET['post_type'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized

		// phpcs:disable WordPress.Security.NonceVerification, WordPress.Security.ValidatedSanitizedInput
		$properties = array(
			'status' => isset( $_GET['post_status'] ) ? sanitize_text_field( $_GET['post_status'] ) : 'all',
		);
		// phpcs:enable

		WC_Tracks::record_event( 'orders_view', $properties );
	}
}