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

WC_Admin_Setup_Wizard_Tracking::track_shipping() public WC 1.0

Track shipping units and whether or not labels are set.

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

Хуков нет.

Возвращает

null.

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

$WC_Admin_Setup_Wizard_Tracking = new WC_Admin_Setup_Wizard_Tracking();
$WC_Admin_Setup_Wizard_Tracking->track_shipping();

Код WC_Admin_Setup_Wizard_Tracking::track_shipping() WC 4.5.2

woocommerce/includes/tracks/events/class-wc-admin-setup-wizard-tracking.php
<?php
public function track_shipping() {
	// phpcs:disable WordPress.Security.NonceVerification.Missing, WordPress.Security.ValidatedSanitizedInput
	$properties = array(
		'weight_unit'       => isset( $_POST['weight_unit'] ) ? sanitize_text_field( wp_unslash( $_POST['weight_unit'] ) ) : '',
		'dimension_unit'    => isset( $_POST['dimension_unit'] ) ? sanitize_text_field( wp_unslash( $_POST['dimension_unit'] ) ) : '',
		'setup_wcs_labels'  => isset( $_POST['setup_woocommerce_services'] ) && 'yes' === $_POST['setup_woocommerce_services'],
		'setup_shipstation' => isset( $_POST['setup_shipstation'] ) && 'yes' === $_POST['setup_shipstation'],
	);
	// phpcs:enable

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