Automattic\WooCommerce\Admin\Features\OnboardingTasks
Task::set_active
Set this as the active task across page loads.
Method of the class: Task{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Task = new Task(); $Task->set_active();
Task::set_active() Task::set active code WC 10.5.0
public function set_active() {
if ( $this->is_complete() ) {
return;
}
set_transient(
self::ACTIVE_TASK_TRANSIENT,
$this->get_id(),
DAY_IN_SECONDS
);
}