Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskList::is_complete()publicWC 1.0

Check if all viewable tasks are complete.

Method of the class: TaskList{}

No Hooks.

Return

true|false.

Usage

$TaskList = new TaskList();
$TaskList->is_complete();

TaskList::is_complete() code WC 7.1.1

public function is_complete() {
	$viewable_tasks = $this->get_viewable_tasks();

	return array_reduce(
		$viewable_tasks,
		function( $is_complete, $task ) {
			return ! $task->is_complete() ? false : $is_complete;
		},
		true
	);
}