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

WC_Admin_Setup_Wizard_Tracking::track_payments() public WC 1.0

Track payment gateways selected.

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

Хуков нет.

Возвращает

null.

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

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

Код WC_Admin_Setup_Wizard_Tracking::track_payments() WC 4.5.2

woocommerce/includes/tracks/events/class-wc-admin-setup-wizard-tracking.php
<?php
public function track_payments() {
	$selected_gateways     = array();
	$created_accounts      = array();
	$wc_admin_setup_wizard = new WC_Admin_Setup_Wizard();
	$gateways              = array_merge( $wc_admin_setup_wizard->get_wizard_in_cart_payment_gateways(), $wc_admin_setup_wizard->get_wizard_manual_payment_gateways() );

	foreach ( $gateways as $gateway_id => $gateway ) {
		if ( ! empty( $_POST[ 'wc-wizard-service-' . $gateway_id . '-enabled' ] ) ) { // WPCS: CSRF ok, input var ok.
			$selected_gateways[] = $gateway_id;
		}
	}

	// Stripe account being created.
	if (
		! empty( $_POST['wc-wizard-service-stripe-enabled'] ) && // WPCS: CSRF ok, input var ok.
		! empty( $_POST['stripe_create_account'] ) // WPCS: CSRF ok, input var ok.
	) {
		$created_accounts[] = 'stripe';
	}
	// PayPal account being created.
	if (
		! empty( $_POST['wc-wizard-service-ppec_paypal-enabled'] ) && // WPCS: CSRF ok, input var ok.
		! empty( $_POST['ppec_paypal_reroute_requests'] ) // WPCS: CSRF ok, input var ok.
	) {
		$created_accounts[] = 'ppec_paypal';
	}

	$properties = array(
		'selected_gateways' => implode( ', ', $selected_gateways ),
		'created_accounts'  => implode( ', ', $created_accounts ),
	);

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