Automattic\WooCommerce\Blocks\Domain\Services\OnboardingTasks

TasksController{}WC 1.0

Onboarding Tasks Controller

No Hooks.

Usage

$TasksController = new TasksController();
// use class methods

Methods

  1. public init()
  2. public register_tasks()

TasksController{} code WC 9.6.1

class TasksController {

	/**
	 * Init tasks.
	 */
	public function init() {
		add_action( 'init', [ $this, 'register_tasks' ] );
	}

	/**
	 * Register tasks.
	 */
	public function register_tasks() {
		TaskLists::add_task(
			'extended',
			new ReviewCheckoutTask()
		);
	}
}