WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

OnboardingTasks::track_completion() public WC 1.0

Records an event when all tasks are completed in the task list.

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

No Hooks.

Return

null. Nothing.

Usage

$result = OnboardingTasks::track_completion( $old_value, $new_value );
$old_value(mixed) (required)
Old value.
$new_value(mixed) (required)
New value.

Code of OnboardingTasks::track_completion() WC 5.2.2

<?php
public static function track_completion( $old_value, $new_value ) {
	if ( $new_value ) {
		wc_admin_record_tracks_event( 'tasklist_tasks_completed' );
	}
}