Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskListSection::is_complete()privateWC 1.0

Returns if section is complete.

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

No Hooks.

Return

true|false;.

Usage

// private - for code of main (parent) class only
$result = $this->is_complete();

Code of TaskListSection::is_complete() WC 7.1.0

private function is_complete() {
	$complete = true;
	foreach ( $this->task_names as $task_name ) {
		if ( null !== $this->task_list && isset( $this->task_list->task_class_id_map[ $task_name ] ) ) {
			$task = $this->task_list->get_task( $this->task_list->task_class_id_map[ $task_name ] );
			if ( $task->can_view() && ! $task->is_complete() ) {
				$complete = false;
				break;
			}
		}
	}
	return $complete;
}