WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Onboarding::maybe_mark_complete() public WC 1.0

When updating WooCommerce, mark the profiler and task list complete.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Onboarding::maybe_mark_complete();

Code of Onboarding::maybe_mark_complete() WC 5.2.2

<?php
public static function maybe_mark_complete() {
	// The install notice still exists so don't complete the profiler.
	if ( ! class_exists( 'WC_Admin_Notices' ) || \WC_Admin_Notices::has_notice( 'install' ) ) {
		return;
	}

	$onboarding_data = get_option( self::PROFILE_DATA_OPTION, array() );
	// Don't make updates if the profiler is completed, but task list is potentially incomplete.
	if ( isset( $onboarding_data['completed'] ) && $onboarding_data['completed'] ) {
		return;
	}

	$onboarding_data['completed'] = true;
	update_option( self::PROFILE_DATA_OPTION, $onboarding_data );
	update_option( 'woocommerce_task_list_hidden', 'yes' );
}