Automattic\WooCommerce\Admin\Features\OnboardingTasks

TaskList::has_previously_completed()publicWC 1.0

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

{} Это метод класса: TaskList{}

Хуков нет.

Возвращает

true|false.

Использование

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

Код TaskList::has_previously_completed() WC 6.4.1

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