Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::set_active()publicWC 1.0

Set this as the active task across page loads.

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

No Hooks.

Return

null. Nothing.

Usage

$Task = new Task();
$Task->set_active();

Code of Task::set_active() WC 6.9.4

public function set_active() {
	if ( $this->is_complete() ) {
		return;
	}

	set_transient(
		self::ACTIVE_TASK_TRANSIENT,
		$this->get_id(),
		DAY_IN_SECONDS
	);
}