Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskLists::init_tasks()public staticWC 1.0

Initialize tasks.

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

No Hooks.

Return

null. Nothing.

Usage

$result = TaskLists::init_tasks();

Code of TaskLists::init_tasks() WC 6.6.1

public static function init_tasks() {
	foreach ( self::DEFAULT_TASKS as $task ) {
		$class = 'Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks\\' . $task;
		if ( ! method_exists( $class, 'init' ) ) {
			continue;
		}
		$class::init();
	}
}