Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Purchase::is_complete()publicWC 1.0

Task completion.

Метод класса: Purchase{}

Хуков нет.

Возвращает

true|false.

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

$Purchase = new Purchase();
$Purchase->is_complete();

Код Purchase::is_complete() WC 7.1.0

public function is_complete() {
	$products = $this->get_paid_products_and_themes();
	return count( $products['remaining'] ) === 0;
}