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 9.0.1

public function is_complete() {
	foreach ( $this->get_viewable_tasks() as $viewable_task ) {
		if ( $viewable_task->is_complete() === false ) {
			return false;
		}
	}

	return true;
}