Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Purchase::can_view()publicWC 1.0

Task visibility.

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

No Hooks.

Return

true|false.

Usage

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

Code of Purchase::can_view() WC 6.7.0

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