Automattic\WooCommerce\Admin\Features\OnboardingTasks
TaskList::has_previously_completed
Check if a task list has previously been marked as complete.
Method of the class: TaskList{}
No Hooks.
Returns
true|false.
Usage
$TaskList = new TaskList(); $TaskList->has_previously_completed();
TaskList::has_previously_completed() TaskList::has previously completed code WC 10.5.0
public function has_previously_completed() {
$complete = get_option( self::COMPLETED_OPTION, array() );
return in_array( $this->get_list_id(), $complete, true );
}