WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::track_onboarding_toggle() public WC 1.0

Track changes to the onboarding option.

{} It's a method of the class: Onboarding{}

No Hooks.

Return

null. Nothing.

Usage

$result = Onboarding::track_onboarding_toggle( $mixed, $value );
$mixed(mixed) (required)
Option name or previous value if option previously existed.
$value(string) (required)
Value of the updated option.

Code of Onboarding::track_onboarding_toggle() WC 5.3.0

<?php
public static function track_onboarding_toggle( $mixed, $value ) {
	if ( defined( 'WC_ADMIN_MIGRATING_OPTIONS' ) && WC_ADMIN_MIGRATING_OPTIONS ) {
		return;
	};

	wc_admin_record_tracks_event(
		'onboarding_toggled',
		array(
			'previous_value' => ! $value,
			'new_value'      => $value,
		)
	);
}