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

WC_Tracker::get_tracking_data() private WC 1.0

Get all the tracking data.

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

Возвращает

Массив.

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

$result = WC_Tracker::get_tracking_data();

Код WC_Tracker::get_tracking_data() WC 4.7.1

<?php
private static function get_tracking_data() {
	$data = array();

	// General site info.
	$data['url']   = home_url();
	$data['email'] = apply_filters( 'woocommerce_tracker_admin_email', get_option( 'admin_email' ) );
	$data['theme'] = self::get_theme_info();

	// WordPress Info.
	$data['wp'] = self::get_wordpress_info();

	// Server Info.
	$data['server'] = self::get_server_info();

	// Plugin info.
	$all_plugins              = self::get_all_plugins();
	$data['active_plugins']   = $all_plugins['active_plugins'];
	$data['inactive_plugins'] = $all_plugins['inactive_plugins'];

	// Jetpack & WooCommerce Connect.

	$data['jetpack_version']    = Constants::is_defined( 'JETPACK__VERSION' ) ? Constants::get_constant( 'JETPACK__VERSION' ) : 'none';
	$data['jetpack_connected']  = ( class_exists( 'Jetpack' ) && is_callable( 'Jetpack::is_active' ) && Jetpack::is_active() ) ? 'yes' : 'no';
	$data['jetpack_is_staging'] = self::is_jetpack_staging_site() ? 'yes' : 'no';
	$data['connect_installed']  = class_exists( 'WC_Connect_Loader' ) ? 'yes' : 'no';
	$data['connect_active']     = ( class_exists( 'WC_Connect_Loader' ) && wp_next_scheduled( 'wc_connect_fetch_service_schemas' ) ) ? 'yes' : 'no';
	$data['helper_connected']   = self::get_helper_connected();

	// Store count info.
	$data['users']      = self::get_user_counts();
	$data['products']   = self::get_product_counts();
	$data['orders']     = self::get_orders();
	$data['reviews']    = self::get_review_counts();
	$data['categories'] = self::get_category_counts();

	// Payment gateway info.
	$data['gateways'] = self::get_active_payment_gateways();

	// Shipping method info.
	$data['shipping_methods'] = self::get_active_shipping_methods();

	// Get all WooCommerce options info.
	$data['settings'] = self::get_all_woocommerce_options_values();

	// Template overrides.
	$data['template_overrides'] = self::get_all_template_overrides();

	// Template overrides.
	$data['admin_user_agents'] = self::get_admin_user_agents();

	// Cart & checkout tech (blocks or shortcodes).
	$data['cart_checkout'] = self::get_cart_checkout_info();

	return apply_filters( 'woocommerce_tracker_data', $data );
}