WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

OnboardingTasks::check_task_completion() public WC 1.0

Check for task completion of a given task.

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

No Hooks.

Return

true|false. Nothing.

Usage

$result = OnboardingTasks::check_task_completion( $task );
$task(string) (required)
Name of task.

Code of OnboardingTasks::check_task_completion() WC 5.3.0

<?php
public static function check_task_completion( $task ) {
	switch ( $task ) {
		case 'products':
			$products = wp_count_posts( 'product' );
			return (int) $products->publish > 0;
		case 'homepage':
			$homepage_id = get_option( 'woocommerce_onboarding_homepage_post_id', false );
			if ( ! $homepage_id ) {
				return false;
			}
			$post      = get_post( $homepage_id );
			$completed = $post && 'publish' === $post->post_status;
			return $completed;
		case 'tax':
			return 'yes' === get_option( 'wc_connect_taxes_enabled' ) ||
				count( DataStore::get_taxes( array() ) ) > 0 ||
				false !== get_option( 'woocommerce_no_sales_tax' );
	}
	return false;
}