WC_Admin_Dashboard_Setup::get_next_task()privateWC 1.0

Get the next task.

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

No Hooks.

Return

Array|null.

Usage

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

Code of WC_Admin_Dashboard_Setup::get_next_task() WC 6.7.0

private function get_next_task() {
	foreach ( $this->get_tasks() as $task ) {
		if ( false === $task->is_complete() ) {
			return $task;
		}
	}

	return null;
}