Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

Purchase::can_view()publicWC 1.0

Task visibility.

Method of the class: Purchase{}

No Hooks.

Return

true|false.

Usage

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

Purchase::can_view() code WC 8.7.0

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