Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Purchase::can_view()publicWC 1.0

Task visibility.

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

Хуков нет.

Возвращает

true|false.

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

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

Код Purchase::can_view() WC 7.1.0

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