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

WC_Site_Tracking::init() public WC 1.0

Init tracking.

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

Хуков нет.

Возвращает

Null. Ничего.

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

$result = WC_Site_Tracking::init();

Код WC_Site_Tracking::init() WC 4.5.2

woocommerce/includes/tracks/class-wc-site-tracking.php
<?php
public static function init() {

	// Define window.wcTracks.recordEvent in case it is enabled client-side.
	self::register_scripts();
	add_filter( 'admin_footer', array( __CLASS__, 'add_tracking_function' ), 24 );

	if ( ! self::is_tracking_enabled() ) {
		add_filter( 'admin_footer', array( __CLASS__, 'add_enable_tracking_function' ), 24 );
		return;
	}

	self::enqueue_scripts();

	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-admin-setup-wizard-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-extensions-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-importer-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-products-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-orders-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-settings-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-status-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-coupons-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-order-tracking.php';
	include_once WC_ABSPATH . 'includes/tracks/events/class-wc-coupon-tracking.php';

	$tracking_classes = array(
		'WC_Admin_Setup_Wizard_Tracking',
		'WC_Extensions_Tracking',
		'WC_Importer_Tracking',
		'WC_Products_Tracking',
		'WC_Orders_Tracking',
		'WC_Settings_Tracking',
		'WC_Status_Tracking',
		'WC_Coupons_Tracking',
		'WC_Order_Tracking',
		'WC_Coupon_Tracking',
	);

	foreach ( $tracking_classes as $tracking_class ) {
		$tracker_instance    = new $tracking_class();
		$tracker_init_method = array( $tracker_instance, 'init' );

		if ( is_callable( $tracker_init_method ) ) {
			call_user_func( $tracker_init_method );
		}
	}
}