WC_Admin_Dashboard_Setup::get_next_task
Get the next task.
Method of the class: WC_Admin_Dashboard_Setup{}
No Hooks.
Returns
Array|null.
Usage
// private - for code of main (parent) class only $result = $this->get_next_task();
WC_Admin_Dashboard_Setup::get_next_task() WC Admin Dashboard Setup::get next task code WC 10.5.0
private function get_next_task() {
foreach ( $this->get_tasks() as $task ) {
if ( false === $task->is_complete() ) {
return $task;
}
}
return null;
}