Automattic\WooCommerce\Admin\Features\OnboardingTasks

Task::has_previously_completed()publicWC 1.0

Check if a task list has previously been marked as complete.

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

No Hooks.

Return

true|false.

Usage

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

Code of Task::has_previously_completed() WC 6.6.1

public function has_previously_completed() {
	$complete = get_option( self::COMPLETED_OPTION, array() );
	return in_array( $this->get_id(), $complete, true );
}