WordPress at Your Fingertips
function is not described

WC_Admin_Dashboard_Setup::get_next_task() private WC 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 5.8.0

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

	return null;
}